From 3ec16d5f9d59722d48290bd50a18482d1c464364 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Thu, 19 Sep 2024 08:21:09 -0500 Subject: [PATCH] spec/aarch64: Add missing symbols to ILP32 linker script --- spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_ilp32.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_ilp32.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_ilp32.yml index 568e663c49..b0fda66792 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_ilp32.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_ilp32.yml @@ -29,6 +29,9 @@ content: | * POSSIBILITY OF SUCH DAMAGE. */ + DDRMC_REGION_0_BASE = 0x00000000000; + DDRMC_REGION_0_LENGTH = 0x00080000000; + MEMORY { RAM : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_LOAD_OFFSET}, LENGTH = ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - ${BSP_XILINX_ZYNQMP_LOAD_OFFSET} - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) NOCACHE : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH}, LENGTH = ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} @@ -59,6 +62,11 @@ content: | bsp_vector_table_in_start_section = 1; + bsp_r0_ram_base = DDRMC_REGION_0_BASE; + bsp_r0_ram_end = ORIGIN (RAM) + LENGTH (RAM); + bsp_r1_ram_base = 0; + bsp_r1_ram_end = 0; + bsp_translation_table_base = ORIGIN (RAM_MMU); bsp_translation_table_end = ORIGIN (RAM_MMU) + LENGTH (RAM_MMU);