mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-11 07:04:22 +00:00
Merge "fix(ehf): restrict secure world FIQ routing model to SPM_MM" into integration
This commit is contained in:
commit
89b9d96573
2 changed files with 5 additions and 8 deletions
|
@ -478,13 +478,10 @@ void __init ehf_init(void)
|
|||
/* Route EL3 interrupts when in Non-secure. */
|
||||
set_interrupt_rm_flag(flags, NON_SECURE);
|
||||
|
||||
/*
|
||||
* Route EL3 interrupts when in secure, only when SPMC is not present
|
||||
* in S-EL2.
|
||||
*/
|
||||
#if !(defined(SPD_spmd) && (SPMD_SPM_AT_SEL2 == 1))
|
||||
/* Route EL3 interrupts only when SPM_MM present in secure. */
|
||||
#if SPM_MM
|
||||
set_interrupt_rm_flag(flags, SECURE);
|
||||
#endif /* !(defined(SPD_spmd) && (SPMD_SPM_AT_SEL2 == 1)) */
|
||||
#endif
|
||||
|
||||
/* Register handler for EL3 interrupts */
|
||||
ret = register_interrupt_type_handler(INTR_TYPE_EL3,
|
||||
|
|
|
@ -107,10 +107,10 @@ static inline int32_t validate_ns_interrupt_rm(uint32_t x)
|
|||
|
||||
static inline int32_t validate_el3_interrupt_rm(uint32_t x)
|
||||
{
|
||||
#if EL3_EXCEPTION_HANDLING && !(defined(SPD_spmd) && (SPMD_SPM_AT_SEL2 == 1))
|
||||
#if EL3_EXCEPTION_HANDLING && SPM_MM
|
||||
/*
|
||||
* With EL3 exception handling, EL3 interrupts are always routed to EL3
|
||||
* from both Secure and Non-secure, when the SPMC does not live in S-EL2.
|
||||
* from Non-secure and from secure only if SPM_MM is present.
|
||||
* Therefore INTR_EL3_VALID_RM1 is the only valid routing model.
|
||||
*/
|
||||
if (x == INTR_EL3_VALID_RM1)
|
||||
|
|
Loading…
Add table
Reference in a new issue