mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-30 15:49:34 +00:00
fix(spmd): fix build error with spmd
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>
This commit is contained in:
parent
41914de338
commit
fd51b21573
5 changed files with 9 additions and 9 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#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.
|
* 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;
|
(void)intid;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif /*defined(SPD_spmd)*/
|
#endif /*defined(SPD_spmd) && (SPMC_AT_EL3 == 0)*/
|
||||||
|
|
|
@ -160,7 +160,7 @@ void bl31_platform_setup(void)
|
||||||
remote_dmc_ecc_setup(plat_info.remote_ddr_size);
|
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.
|
* 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;
|
(void)intid;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif /*defined(SPD_spmd)*/
|
#endif /*defined(SPD_spmd) && (SPMC_AT_EL3 == 0)*/
|
||||||
|
|
|
@ -83,7 +83,7 @@ void __init bl31_plat_arch_setup(void)
|
||||||
fconf_populate("HW_CONFIG", hw_config_info->config_addr);
|
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)
|
void tc_bl31_plat_runtime_setup(void)
|
||||||
{
|
{
|
||||||
arm_bl31_plat_runtime_setup();
|
arm_bl31_plat_runtime_setup();
|
||||||
|
@ -115,4 +115,4 @@ int plat_spmd_handle_group0_interrupt(uint32_t intid)
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif /*defined(SPD_spmd) && (SPMD_SPM_AT_SEL2 == 1)*/
|
#endif /*defined(SPD_spmd) && (SPMC_AT_EL3 == 0)*/
|
||||||
|
|
|
@ -245,7 +245,7 @@ static uint64_t hikey_debug_fiq_handler(uint32_t id,
|
||||||
|
|
||||||
return 0;
|
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.
|
* A dummy implementation of the platform handler for Group0 secure interrupt.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -163,7 +163,7 @@ int plat_spmc_shmem_reclaim(struct ffa_mtd *desc)
|
||||||
}
|
}
|
||||||
#endif
|
#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.
|
* 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;
|
(void)intid;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif /*defined(SPD_spmd) && (SPMD_SPM_AT_SEL2 == 1)*/
|
#endif /*defined(SPD_spmd) && (SPMC_AT_EL3 == 0)*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue