- 论坛徽章:
- 0
|
这是一段mips处理器的uboot 代码,不明白 RVECENT(reset,0) 和RVECENT(reset,1)有什么区别,后面连续的
RVECENT(romReserved,3)是什么意思,需要跳转那么多次吗?,希望详细解释一下,感激不尽
#define RVECENT(f,n) \
b f; nop
#define XVECENT(f,bev) \
b f ; \
li k0,bev
。。。
_start:
RVECENT(reset,0) /* U-boot entry point */
RVECENT(reset,1) /* software reboot */
#if defined(CONFIG_INCA_IP)
.word INFINEON_EBU_BOOTCFG
.word 0x00000000 /* phase of the flash */
#elif defined(CONFIG_PURPLE) /*on a purple Board */
.word INFINEON_EBU_BOOTCFG /* EBU init code, fetched during booting */
.word INFINEON_EBU_BOOTCFG /* EBU init code, fetched during booting */
#else
/*Assuming each jump vector is x words long, it could be used to
generate an address to locate the code in the case where you didn't
want to explicitly fill each jump vector.*/
RVECENT(romReserved,2)
#endif
RVECENT(romReserved,3)
RVECENT(romReserved,4)
RVECENT(romReserved,5)
RVECENT(romReserved,6)
。。。
XVECENT(romExcHandle,0x200) /* bfc00200: R4000 tlbmiss vector */
reset:
。。。
romReserved:
。。。
。。。 |
|