Skip to content

Commit e57da82

Browse files
stephanosionashif
authored andcommitted
tests: kernel: interrupt: Do not test interrupt nesting on RISC-V
This commit disables the nested interrupt test for the RISC-V platform, as interrupt nesting is not supported on the current RISV-C architecture port. Furthermore, the current `trigger_irq` implementation for RISC-V is mostly incorrect and cannot be used, so there is no point in leaving that in the codebase (see #23593). Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 84921c5 commit e57da82

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tests/kernel/interrupt/src/interrupt_util.h

-11
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,6 @@ static inline void trigger_irq(int irq)
6060
#endif
6161
}
6262

63-
#elif defined(CONFIG_RISCV)
64-
static inline void trigger_irq(int irq)
65-
{
66-
u32_t mip;
67-
68-
printk("Triggering irq : %d\n", irq);
69-
__asm__ volatile ("csrrs %0, mip, %1\n"
70-
: "=r" (mip)
71-
: "r" (1 << irq));
72-
}
73-
7463
#elif defined(CONFIG_CPU_ARCV2)
7564
static inline void trigger_irq(int irq)
7665
{

0 commit comments

Comments
 (0)