diff options
author | Heiko Schocher <hs@denx.de> | 2010-11-12 07:53:55 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-12-08 23:50:09 +0100 |
commit | 296cae732b0dbe374abc9b26fed6f73588b9d1e2 (patch) | |
tree | f947d45840b38c44825c5362e67d86e5afb3d4fc /arch/arm/lib | |
parent | 44b0a386bc435d2b51e1b088a0e2610226000c3c (diff) |
arm: add 8-byte alignment for ABI compliance before board_init_f
suggested from Daniel Hobi<daniel.hobi@schmid-telecom.ch>
Tested on following boards:
arm1136: qong
armv7: omap3_beagle
arm926ejs: magnesium, tx25
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
cc: Albert ARIBAUD <albert.aribaud@free.fr>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r-- | arch/arm/lib/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index 1fd5f8362f..96c0e30161 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -276,7 +276,7 @@ void board_init_f (ulong bootflag) ulong addr, addr_sp; /* Pointer is writable since we allocated a register for it */ - gd = (gd_t *) (CONFIG_SYS_INIT_SP_ADDR); + gd = (gd_t *) ((CONFIG_SYS_INIT_SP_ADDR) & ~0x07); /* compiler optimization barrier needed for GCC >= 3.4 */ __asm__ __volatile__("": : :"memory"); |