今天看了一下U-BOOT,有一地方不是太明白: 初始化存储器寄存器: .globl lowlevel_init lowlevel_init:
/* next instruction fail due memory relocation... we'll find the right MEMORY_CONFIG address with the next 3 lines... */ /*ldr r0, =MEMORY_CONFIG*/ mov r0, pc ldr r1, =(0x38+4) sub r0, r0, r1
ldmia r0, {r1-r13} ldr r0, =0x01c80000 stmia r0, {r1-r13} mov pc, lr
ldr r1, =(0x38+4)这一句是什么意思?参数是放在MEMORY_CONFIG标号后面的.
|