From: Eric Cooper Date: Thu, 14 Apr 2011 12:32:37 +0000 (+0000) Subject: ARM: fix stack pointer adjustment in board_init_f() X-Git-Tag: v2011.06-rc1~131^2~14 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6445a3051efadcac1264998cb6387cd1aec2e935;p=oweals%2Fu-boot.git ARM: fix stack pointer adjustment in board_init_f() Since addr_sp is a byte address, it should be adjusted by 12 here. Signed-off-by: Eric Cooper Cc: Albert ARIBAUD Acked-by: Wolfgang Denk --- diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index dc46e21dba..d5b34adfb0 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -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;