mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
fix(plat/common): register PLAT_SP_PRI only if not already registered
Build fails when RAS and SPM are enabled together and when PLAT_SP_PRI EHF priority is equal to PLAT_RAS_PRI EHF priority. So add checks to register SPM priority with the EHF framework only when the priority is different from RAS priority or when RAS is not enabled on the platform. Signed-off-by: Omkar Anand Kulkarni <omkar.kulkarni@arm.com> Change-Id: Ie14f82d27c9835b24890cc4561a56821881cf0ec
This commit is contained in:
parent
6f689a51a5
commit
bf01999aba
1 changed files with 8 additions and 0 deletions
|
@ -24,9 +24,17 @@ ehf_pri_desc_t plat_exceptions[] = {
|
|||
/* Normal priority SDEI */
|
||||
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_NORMAL_PRI),
|
||||
#endif
|
||||
|
||||
#if SPM_MM
|
||||
#if RAS_FFH_SUPPORT
|
||||
#if (PLAT_SP_PRI != PLAT_RAS_PRI)
|
||||
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SP_PRI),
|
||||
#endif
|
||||
#else
|
||||
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SP_PRI),
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Platform specific exceptions description */
|
||||
#ifdef PLAT_EHF_DESC
|
||||
PLAT_EHF_DESC,
|
||||
|
|
Loading…
Add table
Reference in a new issue