startup.s
来自「mx21 Nor flash Bootloader 源代码」· S 代码 · 共 41 行
S
41 行
.extern main .global _start .extern __end_data b _start // this line is mainly for debugging with bootstrap mode // so that the first line of b-record is executed correctly .equ ImageSize, __end_data - 0xC0800200 .long ImageSize_start: ldr r1,=StackInit ldr sp,[r1] b main .equ StackInitValue, __end_data+0x1000 // 4KStackInit: .long StackInitValue .global JumpToKernel// r0 = jump address// r1 = pointer to command lineJumpToKernel:// jump to the copy code (get the arguments right) mov pc, r0 .global JumpToKernel0x// r0 = jump address// r1-r4 = arguments to use (these get shifted)JumpToKernel0x:// jump to the copy code (get the arguments right) mov r8, r0 mov r0, r1 mov r1, r2 mov r2, r3 mov r3, r4 mov pc, r8.section ".data.boot".section ".bss.boot"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?