Skip to content

Commit 106528e

Browse files
Eugeniy Paltsevnashif
authored andcommitted
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 <[email protected]>
1 parent d7b8d79 commit 106528e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/kernel/gen_isr_table/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void trigger_irq(int irq)
9898
: "=r" (mip)
9999
: "r" (1 << irq));
100100
}
101-
#elif defined(CONFIG_CPU_ARCV2)
101+
#elif defined(CONFIG_ARC)
102102
void trigger_irq(int irq)
103103
{
104104
z_arc_v2_aux_reg_write(_ARC_V2_AUX_IRQ_HINT, irq);

tests/kernel/interrupt/src/interrupt_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static inline void trigger_irq(int irq)
9393
#endif
9494
}
9595

96-
#elif defined(CONFIG_CPU_ARCV2)
96+
#elif defined(CONFIG_ARC)
9797
static inline void trigger_irq(int irq)
9898
{
9999
printk("Triggering irq : %d\n", irq);

tests/kernel/interrupt/src/nested_irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/*
1212
* Run the nested interrupt test for the supported platforms only.
1313
*/
14-
#if defined(CONFIG_CPU_CORTEX_M) || defined(CONFIG_CPU_ARCV2) || \
14+
#if defined(CONFIG_CPU_CORTEX_M) || defined(CONFIG_ARC) || \
1515
defined(CONFIG_GIC)
1616
#define TEST_NESTED_ISR
1717
#endif

0 commit comments

Comments
 (0)