From e57da829d7b8deac2fc1201657fb01c270636b4d Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Fri, 20 Mar 2020 16:04:42 +0900 Subject: [PATCH] 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 --- tests/kernel/interrupt/src/interrupt_util.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/kernel/interrupt/src/interrupt_util.h b/tests/kernel/interrupt/src/interrupt_util.h index 598781cb34b..eec84ec680a 100644 --- a/tests/kernel/interrupt/src/interrupt_util.h +++ b/tests/kernel/interrupt/src/interrupt_util.h @@ -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) {