diff options
author | Nikhil M Jain <n-jain1@ti.com> | 2023-06-23 14:06:52 +0530 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2023-06-28 18:58:19 -0500 |
commit | 3ed007668299e088c8c8d59115fc449822d81c1c (patch) | |
tree | 64f1b9e526178a7a948bd3e83098d82be9bd79f6 /common | |
parent | c728be38511553042af0a6112f49619d9e6d2332 (diff) |
common: spl: spl: Update stack pointer address
At SPL stage when stack is relocated, the stack pointer needs to be
updated, the stack pointer may point to stack in on chip memory even
though stack is relocated.
Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 3211cf9cbc..bd26ba96d7 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -999,6 +999,7 @@ ulong spl_relocate_stack_gd(void) #endif /* Get stack position: use 8-byte alignment for ABI compliance */ ptr = CONFIG_SPL_STACK_R_ADDR - roundup(sizeof(gd_t),16); + gd->start_addr_sp = ptr; new_gd = (gd_t *)ptr; memcpy(new_gd, (void *)gd, sizeof(gd_t)); #if CONFIG_IS_ENABLED(DM) |