mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-27 15:24:54 +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)
|
#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.
|
||||||
*/
|
*/
|
||||||
|
if (plat_ic_has_interrupt_type(INTR_TYPE_EL3)) {
|
||||||
rc = register_interrupt_type_handler(INTR_TYPE_EL3,
|
rc = register_interrupt_type_handler(INTR_TYPE_EL3,
|
||||||
spmd_group0_interrupt_handler_nwd,
|
spmd_group0_interrupt_handler_nwd,
|
||||||
flags);
|
flags);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
panic();
|
panic();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue