[U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

Reinhard Meyer reinhard.meyer at emk-elektronik.de
Fri Aug 6 18:27:51 CEST 2010


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


More information about the U-Boot mailing list