[U-Boot] [PATCH 2/2] armv7: Make lowlevel_init.S's lowlevel_init do	ABI compatible stack
    Tom Rini 
    trini at ti.com
       
    Thu Aug  9 18:01:56 CEST 2012
    
    
  
Make sure that when we setup the stack before calling s_init() we have
the stack have 8-byte alignment for ABI compliance.
Signed-off-by: Tom Rini <trini at ti.com>
---
 arch/arm/cpu/armv7/lowlevel_init.S |    1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/arm/cpu/armv7/lowlevel_init.S b/arch/arm/cpu/armv7/lowlevel_init.S
index ef04575..0d45528 100644
--- 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
-- 
1.7.9.5
    
    
More information about the U-Boot
mailing list