
6 Aug
2010
6 Aug
'10
6:27 p.m.
Ben Gardiner wrote:
But I think that the value loaded to sp is still wrong because of the restrictions on immediate arguments in ARM instructions.
with (0x80000000 + 128*1024 -16):
c1080078 <call_board_init_f>: c1080078: e59fd328 ldr sp, [pc, #808] ; c10803a8 <fiq+0x48> c108007c: e3a00000 mov r0, #0 ; 0x0 c1080080: eb00017f bl c1080684 <board_init_f>
and with (0x80000000 + 128*1024 -8):
c1080078 <call_board_init_f>: c1080078: e59fd328 ldr sp, [pc, #808] ; c10803a8 <fiq+0x48> c108007c: e3a00000 mov r0, #0 ; 0x0 c1080080: eb00017f bl c1080684 <board_init_f>
The value loaded into SP is IN the location at PC+808... look there. About in 0xc1080078+0x0328 give or take a word.
Reinhard