arch: armv7-a: Fix stack pointer alignment at startup

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2020-02-19 12:05:11 +09:00 committed by patacongo
parent d06d8fbca2
commit b9682171f4
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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