]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(spmd): fix build error with spmd
authorGovindraj Raja <govindraj.raja@arm.com>
Wed, 10 May 2023 19:50:36 +0000 (14:50 -0500)
committerGovindraj Raja <govindraj.raja@arm.com>
Wed, 10 May 2023 20:57:29 +0000 (15:57 -0500)
Currently when we build with 'SPD=spmd SPMD_SPM_AT_SEL2=0'
options, this causes a build failure as
'plat_spmd_handle_group0_interrupt' is called irrespective of
'SPMD_SPM_AT_SEL2' usage in 'spmd_group0_interrupt_handler_nwd'

So make 'plat_spmd_handle_group0_interrupt' dummy implementation
available just when spmd is enabled and SPMC_AT_EL3 is disabled.

Change-Id: Iaccd38faab81671c98f9165f318145187dca9bc2
Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
plat/arm/board/corstone1000/common/corstone1000_bl31_setup.c
plat/arm/board/n1sdp/n1sdp_bl31_setup.c
plat/arm/board/tc/tc_bl31_setup.c
plat/hisilicon/hikey960/hikey960_bl31_setup.c
plat/qemu/common/qemu_common.c

index b6765a60e0b167e4ec7e934f631eeeb6d9166433..2549d35661376112a238bef493c74b94bbc56707 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <stdint.h>
 
-#if defined(SPD_spmd)
+#if defined(SPD_spmd) && (SPMC_AT_EL3 == 0)
 /*
  * A dummy implementation of the platform handler for Group0 secure interrupt.
  */
@@ -15,4 +15,4 @@ int plat_spmd_handle_group0_interrupt(uint32_t intid)
        (void)intid;
        return -1;
 }
-#endif /*defined(SPD_spmd)*/
+#endif /*defined(SPD_spmd) && (SPMC_AT_EL3 == 0)*/
index 6809541a6392148ee786826b5e8bc38208d1c7de..bd05660066fe9d975b89ee9e4361537a69701090 100644 (file)
@@ -160,7 +160,7 @@ void bl31_platform_setup(void)
                remote_dmc_ecc_setup(plat_info.remote_ddr_size);
 }
 
-#if defined(SPD_spmd)
+#if defined(SPD_spmd) && (SPMC_AT_EL3 == 0)
 /*
  * A dummy implementation of the platform handler for Group0 secure interrupt.
  */
@@ -169,4 +169,4 @@ int plat_spmd_handle_group0_interrupt(uint32_t intid)
        (void)intid;
        return -1;
 }
-#endif /*defined(SPD_spmd)*/
+#endif /*defined(SPD_spmd) && (SPMC_AT_EL3 == 0)*/
index 630324fb397da1cff1480f414898710e5dad8641..6afbd99319fb54c79e9abb514ead50903f899650 100644 (file)
@@ -83,7 +83,7 @@ void __init bl31_plat_arch_setup(void)
        fconf_populate("HW_CONFIG", hw_config_info->config_addr);
 }
 
-#if defined(SPD_spmd) && (SPMD_SPM_AT_SEL2 == 1)
+#if defined(SPD_spmd) && (SPMC_AT_EL3 == 0)
 void tc_bl31_plat_runtime_setup(void)
 {
        arm_bl31_plat_runtime_setup();
@@ -115,4 +115,4 @@ int plat_spmd_handle_group0_interrupt(uint32_t intid)
 
        return -1;
 }
-#endif /*defined(SPD_spmd) && (SPMD_SPM_AT_SEL2 == 1)*/
+#endif /*defined(SPD_spmd) && (SPMC_AT_EL3 == 0)*/
index 1d7bc94a6eca35b275a7c24cca98cde2ec787507..159eee9ee1fbd06379095fae25468b21d0ab410a 100644 (file)
@@ -245,7 +245,7 @@ static uint64_t hikey_debug_fiq_handler(uint32_t id,
 
        return 0;
 }
-#elif defined(SPD_spmd) && (SPMD_SPM_AT_SEL2 == 1)
+#elif defined(SPD_spmd) && (SPMC_AT_EL3 == 0)
 /*
  * A dummy implementation of the platform handler for Group0 secure interrupt.
  */
index 9aec213d2f1760e4b43c1f152b1d8b0114b76337..98be4910d798d58dd7ed84e271972a1033386a75 100644 (file)
@@ -163,7 +163,7 @@ int plat_spmc_shmem_reclaim(struct ffa_mtd *desc)
 }
 #endif
 
-#if defined(SPD_spmd) && (SPMD_SPM_AT_SEL2 == 1)
+#if defined(SPD_spmd) && (SPMC_AT_EL3 == 0)
 /*
  * A dummy implementation of the platform handler for Group0 secure interrupt.
  */
@@ -172,4 +172,4 @@ int plat_spmd_handle_group0_interrupt(uint32_t intid)
        (void)intid;
        return -1;
 }
-#endif /*defined(SPD_spmd) && (SPMD_SPM_AT_SEL2 == 1)*/
+#endif /*defined(SPD_spmd) && (SPMC_AT_EL3 == 0)*/