mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-29 07:33:29 +08:00
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>
This commit is contained in:
parent
74652cf684
commit
6445a3051e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user