From f5e1bed2669cce46a1d7c6b8d3f8f884b4d589b3 Mon Sep 17 00:00:00 2001 From: Nishant Sharma Date: Thu, 12 Oct 2023 10:43:16 +0100 Subject: [PATCH] feat(bl31): reuse SPM_MM specific defines for SPMC_AT_EL3 For EL3 SPMC configuration enabled platforms, allow the reuse of SPM_MM specific definitions. Signed-off-by: Nishant Sharma Change-Id: I5ef694f7e2f6d48ec7db26f92ccb350ed537e3f1 --- bl31/bl31.ld.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bl31/bl31.ld.S b/bl31/bl31.ld.S index 7a8c41ab2..773b41d3e 100644 --- a/bl31/bl31.ld.S +++ b/bl31/bl31.ld.S @@ -101,7 +101,7 @@ SECTIONS { ASSERT(__CPU_OPS_END__ > __CPU_OPS_START__, "cpu_ops not defined for this platform.") -#if SPM_MM +#if SPM_MM || (SPMC_AT_EL3 && SPMC_AT_EL3_SEL0_SP) # ifndef SPM_SHIM_EXCEPTIONS_VMA # define SPM_SHIM_EXCEPTIONS_VMA RAM # endif /* SPM_SHIM_EXCEPTIONS_VMA */ @@ -128,7 +128,7 @@ SECTIONS { PROVIDE(__SPM_SHIM_EXCEPTIONS_LMA__ = LOADADDR(.spm_shim_exceptions)); . = LOADADDR(.spm_shim_exceptions) + SIZEOF(.spm_shim_exceptions); -#endif /* SPM_MM */ +#endif /* SPM_MM || (SPMC_AT_EL3 && SPMC_AT_EL3_SEL0_SP) */ __RW_START__ = .;