splstartup.s

来自「mx21的NAND Flash Bootloader源代码」· S 代码 · 共 45 行

S
45
字号
//	.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 - 0xc3000000	//.long		ImageSize_start:	ldr	r1,=StackInit	and     r1,r1,#3	ldr	sp,[r1]//wokao: b wokao	bl		main	ldr	r1,=0xC03FF000	//command line address	mov	pc,r0	.equ		StackInitValue,	__end_data+0x1000		// 4KStackInit:	.long		StackInitValue 	//.global	JumpToKernel//	r0 = jump address//	r1 = pointer to command line//JumpToKernel://	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 + -
显示快捷键?