;Copy and paste RW data/zero initialized data ldr r0, =|Image$$RO$$Limit| ; Get pointer to ROM data ldr r1, =|Image$$RW$$Base| ; and RAM copy ldr r3, =|Image$$ZI$$Base| ;Zero init base => top of initialised data cmp r0, r1 ; Check that they are different beq %F2 1 cmp r1, r3 ; Copy init data ldrcc r2, [r0], #4 ;--> LDRCC r2, [r0] + ADD r0, r0, #4 strcc r2, [r1], #4 ;--> STRCC r2, [r1] + ADD r1, r1, #4 bcc %B1 2 ldr r1, =|Image$$ZI$$Limit| ; Top of zero init segment mov r2, #0 3 cmp r3, r1 ; Zero init strcc r2, [r3], #4 bcc %B3
我的bootloader中只有这段copy RW/ZI段到SDRAM的程序,现在我把程序下载到NOR上运行,速度比较慢,怎样才能把RO RW ZI 全部COPY到SDRAM并跳转到SDRAM去运行呢 ? |