diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-11-09 14:46:44 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-11-10 08:55:38 +0100 |
commit | ba53a177abd03e25eabb0ce7399c5aae2b134db9 (patch) | |
tree | a57720155e6439b1b2e090fcb1c6c7e613711356 /bsps/riscv/riscv/irq/irq.c | |
parent | bsps/riscv: bsp_interrupt_get/set_affinity() (diff) | |
download | rtems-ba53a177abd03e25eabb0ce7399c5aae2b134db9.tar.bz2 |
bsps/riscv: Always dispatch software interrupts
This helps to run the interrupt API validation tests.
Diffstat (limited to '')
-rw-r--r-- | bsps/riscv/riscv/irq/irq.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bsps/riscv/riscv/irq/irq.c b/bsps/riscv/riscv/irq/irq.c index c538447cb2..3f750e5c4c 100644 --- a/bsps/riscv/riscv/irq/irq.c +++ b/bsps/riscv/riscv/irq/irq.c @@ -99,7 +99,6 @@ void _RISCV_Interrupt_dispatch(uintptr_t mcause, Per_CPU_Control *cpu_self) __asm__ volatile ("fence o, i" : : : "memory"); } } else if (mcause == (RISCV_INTERRUPT_SOFTWARE_MACHINE << 1)) { -#ifdef RTEMS_SMP /* * Clear the software interrupt on this processor. Synchronization of * inter-processor interrupts is done via Per_CPU_Control::message in @@ -107,10 +106,10 @@ void _RISCV_Interrupt_dispatch(uintptr_t mcause, Per_CPU_Control *cpu_self) */ *cpu_self->cpu_per_cpu.clint_msip = 0; +#ifdef RTEMS_SMP _SMP_Inter_processor_interrupt_handler(cpu_self); -#else - bsp_interrupt_handler_dispatch(RISCV_INTERRUPT_VECTOR_SOFTWARE); #endif + bsp_interrupt_handler_dispatch(RISCV_INTERRUPT_VECTOR_SOFTWARE); } else { bsp_fatal(RISCV_FATAL_UNEXPECTED_INTERRUPT_EXCEPTION); } |