Commit e57da829 authored by Stephanos Ioannidis's avatar Stephanos Ioannidis Committed by Anas Nashif
Browse files

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: default avatarStephanos Ioannidis <root@stephanos.io>
parent 84921c53
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -60,17 +60,6 @@ static inline void trigger_irq(int irq)
#endif
}

#elif defined(CONFIG_RISCV)
static inline void trigger_irq(int irq)
{
	u32_t mip;

	printk("Triggering irq : %d\n", irq);
	__asm__ volatile ("csrrs %0, mip, %1\n"
			: "=r" (mip)
			: "r" (1 << irq));
}

#elif defined(CONFIG_CPU_ARCV2)
static inline void trigger_irq(int irq)
{