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:
parent
d7b8d798c0
commit
106528e48e
3 changed files with 3 additions and 3 deletions
|
@ -98,7 +98,7 @@ void trigger_irq(int irq)
|
||||||
: "=r" (mip)
|
: "=r" (mip)
|
||||||
: "r" (1 << irq));
|
: "r" (1 << irq));
|
||||||
}
|
}
|
||||||
#elif defined(CONFIG_CPU_ARCV2)
|
#elif defined(CONFIG_ARC)
|
||||||
void trigger_irq(int irq)
|
void trigger_irq(int irq)
|
||||||
{
|
{
|
||||||
z_arc_v2_aux_reg_write(_ARC_V2_AUX_IRQ_HINT, irq);
|
z_arc_v2_aux_reg_write(_ARC_V2_AUX_IRQ_HINT, irq);
|
||||||
|
|
|
@ -93,7 +93,7 @@ static inline void trigger_irq(int irq)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(CONFIG_CPU_ARCV2)
|
#elif defined(CONFIG_ARC)
|
||||||
static inline void trigger_irq(int irq)
|
static inline void trigger_irq(int irq)
|
||||||
{
|
{
|
||||||
printk("Triggering irq : %d\n", irq);
|
printk("Triggering irq : %d\n", irq);
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
/*
|
/*
|
||||||
* Run the nested interrupt test for the supported platforms only.
|
* 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)
|
defined(CONFIG_GIC)
|
||||||
#define TEST_NESTED_ISR
|
#define TEST_NESTED_ISR
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue