use a more standard syntax to call _rom_init_data

works around assembler bug in some versions of as.
This commit is contained in:
Mariano Alvira 2010-06-07 11:58:16 -04:00
parent 4035dc44f3
commit 36361e1eb0

View file

@ -121,7 +121,9 @@ _begin:
ldr sp, =__sys_stack_top__ /* set the SYS stack pointer */ ldr sp, =__sys_stack_top__ /* set the SYS stack pointer */
#ifdef USE_ROM_VARS #ifdef USE_ROM_VARS
bl _rom_data_init+.-base ldr r12,=_rom_data_init
mov lr,pc
bx r12
#endif #endif
msr CPSR_c, #(SYS_MODE) msr CPSR_c, #(SYS_MODE)