Merge "fix(spmd): register group0 handler only if supported" into integration

This commit is contained in:
Manish Pandey 2024-04-02 12:51:57 +02:00 committed by TrustedFirmware Code Review
commit 42d4111dcf

View file

@ -593,14 +593,17 @@ static int spmd_spmc_init(void *pm_addr)
*/ */
#if (EL3_EXCEPTION_HANDLING == 0) #if (EL3_EXCEPTION_HANDLING == 0)
/* /*
* Register an interrupt handler routing Group0 interrupts to SPMD * If EL3 interrupts are supported by the platform, register an
* while the NWd is running. * interrupt handler routing Group0 interrupts to SPMD while the NWd is
* running.
*/ */
rc = register_interrupt_type_handler(INTR_TYPE_EL3, if (plat_ic_has_interrupt_type(INTR_TYPE_EL3)) {
spmd_group0_interrupt_handler_nwd, rc = register_interrupt_type_handler(INTR_TYPE_EL3,
flags); spmd_group0_interrupt_handler_nwd,
if (rc != 0) { flags);
panic(); if (rc != 0) {
panic();
}
} }
#endif #endif