• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révisionfcbc43bd508afbb5b7ffa9682dc22e1f5e0912d4 (tree)
l'heure2022-07-26 15:23:54
AuteurStefan Herbrechtsmeier <stefan.herbrechtsmeier@weid...>
CommiterMichal Simek

Message de Log

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>

Change Summary

Modification

--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -107,7 +107,7 @@ config SPL_PAD_TO
107107 config SPL_HAS_BSS_LINKER_SECTION
108108 depends on SPL_FRAMEWORK
109109 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
111111
112112 config SPL_BSS_START_ADDR
113113 hex "Link address for the BSS within the SPL binary"
@@ -118,6 +118,7 @@ config SPL_BSS_START_ADDR
118118 default 0x81f80000 if ARCH_SUNXI && MACH_SUNIV
119119 default 0x4ff80000 if ARCH_SUNXI && !(MACH_SUN9I || MACH_SUNIV)
120120 default 0x2ff80000 if ARCH_SUNXI && MACH_SUN9I
121+ default 0x1000 if ARCH_ZYNQMP
121122
122123 choice
123124 prompt "Enforce SPL BSS limit"
--- a/configs/avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig
+++ b/configs/avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig
@@ -27,8 +27,6 @@ CONFIG_BOOTDELAY=0
2727 # CONFIG_DISPLAY_CPUINFO is not set
2828 CONFIG_CLOCKS=y
2929 CONFIG_SPL_MAX_SIZE=0x40000
30-CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
31-CONFIG_SPL_BSS_START_ADDR=0x0
3230 CONFIG_SPL_BSS_MAX_SIZE=0x80000
3331 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
3432 CONFIG_SPL_STACK=0xfffffffc
--- a/configs/xilinx_zynqmp_mini_emmc0_defconfig
+++ b/configs/xilinx_zynqmp_mini_emmc0_defconfig
@@ -25,8 +25,6 @@ CONFIG_BOARD_EARLY_INIT_R=y
2525 # CONFIG_BOARD_LATE_INIT is not set
2626 CONFIG_CLOCKS=y
2727 CONFIG_SPL_MAX_SIZE=0x40000
28-CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
29-CONFIG_SPL_BSS_START_ADDR=0x0
3028 CONFIG_SPL_BSS_MAX_SIZE=0x80000
3129 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
3230 CONFIG_SPL_STACK=0xfffffffc
--- a/configs/xilinx_zynqmp_mini_emmc1_defconfig
+++ b/configs/xilinx_zynqmp_mini_emmc1_defconfig
@@ -25,8 +25,6 @@ CONFIG_BOARD_EARLY_INIT_R=y
2525 # CONFIG_BOARD_LATE_INIT is not set
2626 CONFIG_CLOCKS=y
2727 CONFIG_SPL_MAX_SIZE=0x40000
28-CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
29-CONFIG_SPL_BSS_START_ADDR=0x0
3028 CONFIG_SPL_BSS_MAX_SIZE=0x80000
3129 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
3230 CONFIG_SPL_STACK=0xfffffffc
--- a/configs/xilinx_zynqmp_mini_qspi_defconfig
+++ b/configs/xilinx_zynqmp_mini_qspi_defconfig
@@ -24,8 +24,6 @@ CONFIG_REMAKE_ELF=y
2424 # CONFIG_BOARD_LATE_INIT is not set
2525 CONFIG_CLOCKS=y
2626 CONFIG_SPL_MAX_SIZE=0x40000
27-CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
28-CONFIG_SPL_BSS_START_ADDR=0x0
2927 CONFIG_SPL_BSS_MAX_SIZE=0x80000
3028 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
3129 CONFIG_SPL_STACK=0xfffffffc
--- a/configs/xilinx_zynqmp_virt_defconfig
+++ b/configs/xilinx_zynqmp_virt_defconfig
@@ -32,8 +32,6 @@ CONFIG_PREBOOT="run scsi_init;usb start"
3232 CONFIG_BOARD_EARLY_INIT_R=y
3333 CONFIG_CLOCKS=y
3434 CONFIG_SPL_MAX_SIZE=0x40000
35-CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
36-CONFIG_SPL_BSS_START_ADDR=0x0
3735 CONFIG_SPL_BSS_MAX_SIZE=0x80000
3836 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
3937 CONFIG_SPL_STACK=0xfffffffc