Skip to content

Commit

Permalink
tests: kernel: interrupt: Do not test interrupt nesting on RISC-V
Browse files Browse the repository at this point in the history
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 zephyrproject-rtos#23593).

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
stephanosio authored and hakehuang committed Apr 30, 2020
1 parent 701a93a commit 725d65b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/kernel/interrupt/src/interrupt_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 725d65b

Please sign in to comment.