summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2022-07-14 15:47:33 +0200
committerMichal Simek <michal.simek@amd.com>2022-07-26 08:23:54 +0200
commitfcbc43bd508afbb5b7ffa9682dc22e1f5e0912d4 (patch)
tree817dbdc1b6c0748ab37c7e8f481ebf415c35f700 /common
parent5e0e1a86d327d0e3330aee737559dd15a3b27bd7 (diff)
downloadu-boot-fcbc43bd508afbb5b7ffa9682dc22e1f5e0912d4.tar.gz
u-boot-fcbc43bd508afbb5b7ffa9682dc22e1f5e0912d4.tar.bz2
u-boot-fcbc43bd508afbb5b7ffa9682dc22e1f5e0912d4.zip
xilinx: zynqmp: Do not use 0 as spl bss start address
Do not use 0 as address for memory because of the special meaning for pointers (null pointer). Change the spl bss start address to the second page. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Link: https://lore.kernel.org/r/20220714134733.7487-1-stefan.herbrechtsmeier-oss@weidmueller.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'common')
-rw-r--r--common/spl/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 2352fc9d6d..cb85ee415c 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -107,7 +107,7 @@ config SPL_PAD_TO
config SPL_HAS_BSS_LINKER_SECTION
depends on SPL_FRAMEWORK
bool "Use a specific address for the BSS via the linker script"
- default y if ARCH_SUNXI || ARCH_MX6 || ARCH_OMAP2PLUS || MIPS || RISCV
+ default y if ARCH_SUNXI || ARCH_MX6 || ARCH_OMAP2PLUS || MIPS || RISCV || ARCH_ZYNQMP
config SPL_BSS_START_ADDR
hex "Link address for the BSS within the SPL binary"
@@ -118,6 +118,7 @@ config SPL_BSS_START_ADDR
default 0x81f80000 if ARCH_SUNXI && MACH_SUNIV
default 0x4ff80000 if ARCH_SUNXI && !(MACH_SUN9I || MACH_SUNIV)
default 0x2ff80000 if ARCH_SUNXI && MACH_SUN9I
+ default 0x1000 if ARCH_ZYNQMP
choice
prompt "Enforce SPL BSS limit"