diff options
author | Michal Simek | 2022-06-24 14:14:59 +0200 |
---|---|---|
committer | Michal Simek | 2022-06-24 14:14:59 +0200 |
commit | aa0799eb67fe15b0ff929f92a6a49319111ff5b7 (patch) | |
tree | 590e312044b472161919350173072f631d28f295 /arch | |
parent | 16a18471bbdeb051d6905c1cba5a1bb84a2fbe49 (diff) |
microblaze: Fix early stack allocation
CONFIG_SYS_INIT_SP_OFFSET macro place stack to TEXT_BASE - SYS_MALLOC_F_LEN
but there is no reason to do it now because board_init_f_alloc_reserve()
returns exact location where stack should be. That's why stack location is
calculated at run time and there is no need to hardcode it via macro. This
change will help with placing U-Boot to any address.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/e9aee69646e022fd8a96cbee2d2a07ab81fb6e05.1655299267.git.michal.simek@amd.com
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/cpu/start.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index 715ef37b39d..1acac5faf42 100644 --- a/arch/microblaze/cpu/start.S +++ b/arch/microblaze/cpu/start.S @@ -22,7 +22,7 @@ _start: #if defined(CONFIG_SPL_BUILD) addi r1, r0, CONFIG_SPL_STACK_ADDR #else - addi r1, r0, CONFIG_SYS_INIT_SP_OFFSET + add r1, r0, r8 #endif addi r1, r1, -4 /* Decrement SP to top of memory */ |