tests: kernel: interrupt: Add gicv3 support
Generate SGI to self using own MPIDR. Signed-off-by: Sandeep Tripathy <sandeep.tripathy@broadcom.com>
This commit is contained in:
parent
2e42a7028d
commit
ca6f04f554
1 changed files with 4 additions and 0 deletions
|
@ -74,8 +74,12 @@ static inline void trigger_irq(int irq)
|
|||
* Generate a software generated interrupt and forward it to the
|
||||
* requesting CPU.
|
||||
*/
|
||||
#if CONFIG_GIC_VER <= 2
|
||||
sys_write32(GICD_SGIR_TGTFILT_REQONLY | GICD_SGIR_SGIINTID(irq),
|
||||
GICD_SGIR);
|
||||
#else
|
||||
gic_raise_sgi(irq, GET_MPIDR(), BIT(MPIDR_TO_CORE(GET_MPIDR())));
|
||||
#endif
|
||||
}
|
||||
|
||||
#elif defined(CONFIG_CPU_ARCV2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue