From 12973bcc89eff3a4bb4953061d48e8805b3c6079 Mon Sep 17 00:00:00 2001 From: Rakshit Goyal Date: Wed, 5 Jun 2024 10:58:18 +0530 Subject: [PATCH] feat(rdv3): define SPMC manifest base address ARM_SPMC_MANIFEST_BASE defines the base address of the SPMC manifest used by BL32. In the non-RESET_TO_BL31 case, it is defined relative to the top of Trusted SRAM. However, for RESET_TO_BL31, the PLAT_ARM_SPMC_MANIFEST_BASE macro can be used to set it to a different location which is then used to populate ARM_SPMC_MANIFEST_BASE. As the RD-V3 platform and its variants have a different SRAM layout compared to that defined in arm_def.h, define the PLAT_ARM_SPMC_MANIFEST_BASE macro to an address suitable for this platform and its variants. Signed-off-by: Rakshit Goyal Change-Id: I36e1eb21ab3d1c68bddb52c62198fcdfc40d8993 --- .../neoverse_rd/common/include/nrd3/nrd_plat_arm_def3.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plat/arm/board/neoverse_rd/common/include/nrd3/nrd_plat_arm_def3.h b/plat/arm/board/neoverse_rd/common/include/nrd3/nrd_plat_arm_def3.h index f16a7c9a0..7fa2b775d 100644 --- a/plat/arm/board/neoverse_rd/common/include/nrd3/nrd_plat_arm_def3.h +++ b/plat/arm/board/neoverse_rd/common/include/nrd3/nrd_plat_arm_def3.h @@ -731,6 +731,12 @@ # define BL32_BASE PLAT_ARM_SPMC_BASE # define BL32_LIMIT (PLAT_ARM_SPMC_BASE + \ PLAT_ARM_SPMC_SIZE) + +#if RESET_TO_BL31 +# define PLAT_ARM_SPMC_MANIFEST_BASE UL(0x1F500) +# define ARM_SPMC_MANIFEST_BASE PLAT_ARM_SPMC_MANIFEST_BASE +#endif + # endif /*******************************************************************************