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:
Sandeep Tripathy 2020-06-12 00:25:37 +05:30 committed by Anas Nashif
commit ca6f04f554

View file

@ -74,8 +74,12 @@ static inline void trigger_irq(int irq)
* Generate a software generated interrupt and forward it to the * Generate a software generated interrupt and forward it to the
* requesting CPU. * requesting CPU.
*/ */
#if CONFIG_GIC_VER <= 2
sys_write32(GICD_SGIR_TGTFILT_REQONLY | GICD_SGIR_SGIINTID(irq), sys_write32(GICD_SGIR_TGTFILT_REQONLY | GICD_SGIR_SGIINTID(irq),
GICD_SGIR); GICD_SGIR);
#else
gic_raise_sgi(irq, GET_MPIDR(), BIT(MPIDR_TO_CORE(GET_MPIDR())));
#endif
} }
#elif defined(CONFIG_CPU_ARCV2) #elif defined(CONFIG_CPU_ARCV2)