ARM: fix stack pointer adjustment in board_init_f()
authorEric Cooper <ecc@cmu.edu>
Thu, 14 Apr 2011 12:32:37 +0000 (12:32 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Wed, 27 Apr 2011 17:38:09 +0000 (19:38 +0200)
Since addr_sp is a byte address, it should be adjusted by 12 here.

Signed-off-by: Eric Cooper <ecc@cmu.edu>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Wolfgang Denk <wd@denx.de>
arch/arm/lib/board.c

index dc46e21dba521a532af1ac2a6dd83e28bfccc626..d5b34adfb0cf32b413c65371ce3a055aaa17ce14 100644 (file)
@@ -399,7 +399,7 @@ void board_init_f (ulong bootflag)
                CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ, addr_sp);
 #endif
        /* leave 3 words for abort-stack    */
-       addr_sp -= 3;
+       addr_sp -= 12;
 
        /* 8-byte alignment for ABI compliance */
        addr_sp &= ~0x07;