- 论坛徽章:
- 0
|
在看u-boot(MIPS)启动代码中有很多.word指令。
读mips指令资料中,.word是用来做数据声明的,如:var1: .word 3,但下面的代码中并没有类似val1:的出现,那这里的 .word _GLOBAL_OFFSET_TABLE_是做什么用的?
/* Initialize GOT pointer.
*/
bal 1f
nop
.word _GLOBAL_OFFSET_TABLE_
1:
move gp, ra
lw t1, 0(ra)
move gp, t1
/* Initialize any external memory.
*/
la t9, lowlevel_init
jalr t9
nop
还有诸如下面的:
#if defined(CONFIG_INCA_IP)
.word INFINEON_EBU_BOOTCFG /* EBU init code, fetched during booting */
.word 0x00000000 /* phase of the flash */
#elif defined(CONFIG_PURPLE)
.word INFINEON_EBU_BOOTCFG /* EBU init code, fetched during booting */
.word INFINEON_EBU_BOOTCFG /* EBU init code, fetched during booting */
请各位大侠不吝赐教! |
|