projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41aebf8
)
armv7: Make lowlevel_init.S's lowlevel_init do ABI compatible stack
author
Tom Rini
<trini@ti.com>
Thu, 9 Aug 2012 15:22:06 +0000
(08:22 -0700)
committer
Albert ARIBAUD
<albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:19 +0000
(14:58 +0200)
Make sure that when we setup the stack before calling s_init() we have
the stack have 8-byte alignment for ABI compliance.
Tested-by: Allen Martin <amartin@nvidia.com>
Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/lowlevel_init.S
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/lowlevel_init.S
b/arch/arm/cpu/armv7/lowlevel_init.S
index ef04575e8259183f02713975e50f6187f16b14f5..0d45528e999ee021799bc3556ca0059d1df5ad9b 100644
(file)
--- a/
arch/arm/cpu/armv7/lowlevel_init.S
+++ b/
arch/arm/cpu/armv7/lowlevel_init.S
@@
-36,6
+36,7
@@
ENTRY(lowlevel_init)
* Setup a temporary stack
*/
ldr sp, =CONFIG_SYS_INIT_SP_ADDR
+ bic sp, sp, #7 /* 8-byte alignment for ABI compliance */
/*
* Save the old lr(passed in ip) and the current lr to stack