summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPadmarao Begari <padmarao.begari@amd.com>2025-04-07 19:15:44 +0530
committerMichal Simek <michal.simek@amd.com>2025-04-16 13:44:44 +0200
commit003d56c5489178adbd917fe579e3ea0a12498fe9 (patch)
tree9896fbfceb78465f9b2665b9e58bb2cca06cb695
parentc803720237e77f73e3a63cfffca3fd603150d430 (diff)
configs: versal: Fix initial stack pointer
The mini u-boot is getting exception because of an initial stack pointer address is used at near the top of memory, and while executing u-boot is assigned pre-malloc and global_data memory after initial stack pointer and updated the stack pointer. Serial driver is used pre-malloc area for serial operations before relocation. But pre-malloc area is cleared while doing BSS at relocation time. The u-boot is called board_init() function and doing printf, relocation serial driver is not initialized yet, so it is using before relocation serial operations but it is cleared by BSS and got the exception. To fix, change an initial stack pointer address from near the top of memory to near the relocation memory. Fixes: 685874939a5e ("configs: versal: update initial stack pointer") Signed-off-by: Padmarao Begari <padmarao.begari@amd.com> Link: https://lore.kernel.org/r/20250407134544.3951763-1-padmarao.begari@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
-rw-r--r--configs/xilinx_versal_mini_ospi_defconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/xilinx_versal_mini_ospi_defconfig b/configs/xilinx_versal_mini_ospi_defconfig
index e1cdc186fb4..af9ce499169 100644
--- a/configs/xilinx_versal_mini_ospi_defconfig
+++ b/configs/xilinx_versal_mini_ospi_defconfig
@@ -7,7 +7,7 @@ CONFIG_SYS_MALLOC_LEN=0x2000
CONFIG_SYS_MALLOC_F_LEN=0x500
CONFIG_NR_DRAM_BANKS=1
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
-CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xFFFFFE00
+CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xFFFE1000
CONFIG_SF_DEFAULT_SPEED=30000000
CONFIG_ENV_SIZE=0x80
# CONFIG_DM_GPIO is not set