summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorEric Cooper <ecc@cmu.edu>2011-04-14 12:32:37 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-04-27 19:38:09 +0200
commit6445a3051efadcac1264998cb6387cd1aec2e935 (patch)
tree0695de8ef99c690e05e554e70bf92d680cb7e904 /arch
parent74652cf684fc8678a3c5377b1532394e2025ea49 (diff)
downloadu-boot-imx-6445a3051efadcac1264998cb6387cd1aec2e935.zip
u-boot-imx-6445a3051efadcac1264998cb6387cd1aec2e935.tar.gz
u-boot-imx-6445a3051efadcac1264998cb6387cd1aec2e935.tar.bz2
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 <ecc@cmu.edu> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Acked-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/lib/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index dc46e21..d5b34ad 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;