Révision | fcbc43bd508afbb5b7ffa9682dc22e1f5e0912d4 (tree) |
---|---|
l'heure | 2022-07-26 15:23:54 |
Auteur | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weid...> |
Commiter | Michal Simek |
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>
@@ -107,7 +107,7 @@ config SPL_PAD_TO | ||
107 | 107 | config SPL_HAS_BSS_LINKER_SECTION |
108 | 108 | depends on SPL_FRAMEWORK |
109 | 109 | bool "Use a specific address for the BSS via the linker script" |
110 | - default y if ARCH_SUNXI || ARCH_MX6 || ARCH_OMAP2PLUS || MIPS || RISCV | |
110 | + default y if ARCH_SUNXI || ARCH_MX6 || ARCH_OMAP2PLUS || MIPS || RISCV || ARCH_ZYNQMP | |
111 | 111 | |
112 | 112 | config SPL_BSS_START_ADDR |
113 | 113 | hex "Link address for the BSS within the SPL binary" |
@@ -118,6 +118,7 @@ config SPL_BSS_START_ADDR | ||
118 | 118 | default 0x81f80000 if ARCH_SUNXI && MACH_SUNIV |
119 | 119 | default 0x4ff80000 if ARCH_SUNXI && !(MACH_SUN9I || MACH_SUNIV) |
120 | 120 | default 0x2ff80000 if ARCH_SUNXI && MACH_SUN9I |
121 | + default 0x1000 if ARCH_ZYNQMP | |
121 | 122 | |
122 | 123 | choice |
123 | 124 | prompt "Enforce SPL BSS limit" |
@@ -27,8 +27,6 @@ CONFIG_BOOTDELAY=0 | ||
27 | 27 | # CONFIG_DISPLAY_CPUINFO is not set |
28 | 28 | CONFIG_CLOCKS=y |
29 | 29 | CONFIG_SPL_MAX_SIZE=0x40000 |
30 | -CONFIG_SPL_HAS_BSS_LINKER_SECTION=y | |
31 | -CONFIG_SPL_BSS_START_ADDR=0x0 | |
32 | 30 | CONFIG_SPL_BSS_MAX_SIZE=0x80000 |
33 | 31 | # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set |
34 | 32 | CONFIG_SPL_STACK=0xfffffffc |
@@ -25,8 +25,6 @@ CONFIG_BOARD_EARLY_INIT_R=y | ||
25 | 25 | # CONFIG_BOARD_LATE_INIT is not set |
26 | 26 | CONFIG_CLOCKS=y |
27 | 27 | CONFIG_SPL_MAX_SIZE=0x40000 |
28 | -CONFIG_SPL_HAS_BSS_LINKER_SECTION=y | |
29 | -CONFIG_SPL_BSS_START_ADDR=0x0 | |
30 | 28 | CONFIG_SPL_BSS_MAX_SIZE=0x80000 |
31 | 29 | # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set |
32 | 30 | CONFIG_SPL_STACK=0xfffffffc |
@@ -25,8 +25,6 @@ CONFIG_BOARD_EARLY_INIT_R=y | ||
25 | 25 | # CONFIG_BOARD_LATE_INIT is not set |
26 | 26 | CONFIG_CLOCKS=y |
27 | 27 | CONFIG_SPL_MAX_SIZE=0x40000 |
28 | -CONFIG_SPL_HAS_BSS_LINKER_SECTION=y | |
29 | -CONFIG_SPL_BSS_START_ADDR=0x0 | |
30 | 28 | CONFIG_SPL_BSS_MAX_SIZE=0x80000 |
31 | 29 | # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set |
32 | 30 | CONFIG_SPL_STACK=0xfffffffc |
@@ -24,8 +24,6 @@ CONFIG_REMAKE_ELF=y | ||
24 | 24 | # CONFIG_BOARD_LATE_INIT is not set |
25 | 25 | CONFIG_CLOCKS=y |
26 | 26 | CONFIG_SPL_MAX_SIZE=0x40000 |
27 | -CONFIG_SPL_HAS_BSS_LINKER_SECTION=y | |
28 | -CONFIG_SPL_BSS_START_ADDR=0x0 | |
29 | 27 | CONFIG_SPL_BSS_MAX_SIZE=0x80000 |
30 | 28 | # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set |
31 | 29 | CONFIG_SPL_STACK=0xfffffffc |
@@ -32,8 +32,6 @@ CONFIG_PREBOOT="run scsi_init;usb start" | ||
32 | 32 | CONFIG_BOARD_EARLY_INIT_R=y |
33 | 33 | CONFIG_CLOCKS=y |
34 | 34 | CONFIG_SPL_MAX_SIZE=0x40000 |
35 | -CONFIG_SPL_HAS_BSS_LINKER_SECTION=y | |
36 | -CONFIG_SPL_BSS_START_ADDR=0x0 | |
37 | 35 | CONFIG_SPL_BSS_MAX_SIZE=0x80000 |
38 | 36 | # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set |
39 | 37 | CONFIG_SPL_STACK=0xfffffffc |