armv7: Make lowlevel_init.S's lowlevel_init do ABI compatible stack
authorTom Rini <trini@ti.com>
Thu, 9 Aug 2012 15:22:06 +0000 (08:22 -0700)
committerAlbert 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

index ef04575e8259183f02713975e50f6187f16b14f5..0d45528e999ee021799bc3556ca0059d1df5ad9b 100644 (file)
@@ -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