From 7eb3ef09b06ff19ecb32c932866f53ea21c8b12c Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Fri, 17 May 2024 14:21:31 -0500 Subject: [PATCH] spec/xilinx-zynqmp-rpu: Calculate correct RAM area There were some problems in the math calculating RAM length and NOCACHE origin location. These have been resolved in this patch allowing RTEMS RAM space to be relocated above 0xfe00000 to better accomodate other elements in the system. --- spec/build/bsps/arm/xilinx-zynqmp-rpu/linkcmds.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/build/bsps/arm/xilinx-zynqmp-rpu/linkcmds.yml b/spec/build/bsps/arm/xilinx-zynqmp-rpu/linkcmds.yml index 9c8a6d1cd6..5875af707f 100644 --- a/spec/build/bsps/arm/xilinx-zynqmp-rpu/linkcmds.yml +++ b/spec/build/bsps/arm/xilinx-zynqmp-rpu/linkcmds.yml @@ -4,8 +4,8 @@ content: | MEMORY { RAM_INT_0 : ORIGIN = ${ZYNQMP_RPU_RAM_INT_0_ORIGIN:#010x}, LENGTH = ${ZYNQMP_RPU_RAM_INT_0_LENGTH:#010x} RAM_INT_1 : ORIGIN = ${ZYNQMP_RPU_RAM_INT_1_ORIGIN:#010x}, LENGTH = ${ZYNQMP_RPU_RAM_INT_1_LENGTH:#010x} - RAM : ORIGIN = ${ZYNQMP_RPU_RAM_ORIGIN:#010x}, LENGTH = ${ZYNQMP_RPU_RAM_LENGTH:#010x} - ${ZYNQMP_RPU_RAM_ORIGIN:#010x} - ${ZYNQMP_RPU_RAM_NOCACHE_LENGTH:#010x} - NOCACHE : ORIGIN = ${ZYNQMP_RPU_RAM_LENGTH:#010x} - ${ZYNQMP_RPU_RAM_NOCACHE_LENGTH:#010x}, LENGTH = ${ZYNQMP_RPU_RAM_NOCACHE_LENGTH:#010x} + RAM : ORIGIN = ${ZYNQMP_RPU_RAM_ORIGIN:#010x}, LENGTH = ${ZYNQMP_RPU_RAM_LENGTH:#010x} - ${ZYNQMP_RPU_RAM_NOCACHE_LENGTH:#010x} + NOCACHE : ORIGIN = ${ZYNQMP_RPU_RAM_ORIGIN:#010x} + ${ZYNQMP_RPU_RAM_LENGTH:#010x} - ${ZYNQMP_RPU_RAM_NOCACHE_LENGTH:#010x}, LENGTH = ${ZYNQMP_RPU_RAM_NOCACHE_LENGTH:#010x} } REGION_ALIAS ("REGION_START", RAM_INT_0);