mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
Merge "fix(spmd): register group0 handler only if supported" into integration
This commit is contained in:
commit
42d4111dcf
1 changed files with 10 additions and 7 deletions
|
@ -593,15 +593,18 @@ static int spmd_spmc_init(void *pm_addr)
|
|||
*/
|
||||
#if (EL3_EXCEPTION_HANDLING == 0)
|
||||
/*
|
||||
* Register an interrupt handler routing Group0 interrupts to SPMD
|
||||
* while the NWd is running.
|
||||
* If EL3 interrupts are supported by the platform, register an
|
||||
* interrupt handler routing Group0 interrupts to SPMD while the NWd is
|
||||
* running.
|
||||
*/
|
||||
if (plat_ic_has_interrupt_type(INTR_TYPE_EL3)) {
|
||||
rc = register_interrupt_type_handler(INTR_TYPE_EL3,
|
||||
spmd_group0_interrupt_handler_nwd,
|
||||
flags);
|
||||
if (rc != 0) {
|
||||
panic();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue