aboutsummaryrefslogtreecommitdiff
path: root/include/configs/microblaze-generic.h
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2022-06-24 14:14:59 +0200
committerMichal Simek <michal.simek@amd.com>2022-06-24 14:14:59 +0200
commitaa0799eb67fe15b0ff929f92a6a49319111ff5b7 (patch)
tree590e312044b472161919350173072f631d28f295 /include/configs/microblaze-generic.h
parent16a18471bbdeb051d6905c1cba5a1bb84a2fbe49 (diff)
downloadu-boot-aa0799eb67fe15b0ff929f92a6a49319111ff5b7.zip
u-boot-aa0799eb67fe15b0ff929f92a6a49319111ff5b7.tar.gz
u-boot-aa0799eb67fe15b0ff929f92a6a49319111ff5b7.tar.bz2
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 'include/configs/microblaze-generic.h')
-rw-r--r--include/configs/microblaze-generic.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 663837f..60ceb2c 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -18,10 +18,6 @@
# define CONFIG_SYS_BAUDRATE_TABLE \
{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
-/* Stack location before relocation */
-#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_TEXT_BASE - \
- CONFIG_SYS_MALLOC_F_LEN)
-
#ifdef CONFIG_CFI_FLASH
/* ?empty sector */
# define CONFIG_SYS_FLASH_EMPTY_INFO 1