arch: armv7-a: Fix stack pointer alignment at startup
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
d06d8fbca2
commit
b9682171f4
|
@ -631,6 +631,7 @@ __start:
|
|||
/* Set up the stack pointer and clear the frame pointer */
|
||||
|
||||
ldr sp, .Lstackpointer
|
||||
bic sp, sp, #7 /* Get the stack pointer with 8-byte alignment */
|
||||
mov fp, #0
|
||||
|
||||
#ifndef CONFIG_BOOT_SDRAM_DATA
|
||||
|
|
|
@ -662,7 +662,8 @@ __start:
|
|||
/* Set up the stack pointer and clear the frame pointer */
|
||||
|
||||
ldr sp, .Lstackpointer
|
||||
mov fp, #0
|
||||
bic sp, sp, #7 /* Get the stack pointer with 8-byte alignment */
|
||||
mov fp, #0
|
||||
|
||||
#ifndef CONFIG_BOOT_SDRAM_DATA
|
||||
/* Initialize .bss and .data ONLY if .bss and .data lie in SRAM that is
|
||||
|
|
Loading…
Reference in New Issue