tests: interrupts: generalize ARC-specific part for all ARC CPUs

Generalize ARC-specific interrupt triggering for all ARC CPUs
instead of ARCv2 only.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
This commit is contained in:
Eugeniy Paltsev 2021-03-18 20:47:29 +03:00 committed by Anas Nashif
commit 106528e48e
3 changed files with 3 additions and 3 deletions

View file

@ -98,7 +98,7 @@ void trigger_irq(int irq)
: "=r" (mip)
: "r" (1 << irq));
}
#elif defined(CONFIG_CPU_ARCV2)
#elif defined(CONFIG_ARC)
void trigger_irq(int irq)
{
z_arc_v2_aux_reg_write(_ARC_V2_AUX_IRQ_HINT, irq);

View file

@ -93,7 +93,7 @@ static inline void trigger_irq(int irq)
#endif
}
#elif defined(CONFIG_CPU_ARCV2)
#elif defined(CONFIG_ARC)
static inline void trigger_irq(int irq)
{
printk("Triggering irq : %d\n", irq);

View file

@ -11,7 +11,7 @@
/*
* Run the nested interrupt test for the supported platforms only.
*/
#if defined(CONFIG_CPU_CORTEX_M) || defined(CONFIG_CPU_ARCV2) || \
#if defined(CONFIG_CPU_CORTEX_M) || defined(CONFIG_ARC) || \
defined(CONFIG_GIC)
#define TEST_NESTED_ISR
#endif