Skip to content

Commit

Permalink
arch/riscv: fix IRQ_SOFT for non-SMP
Browse files Browse the repository at this point in the history
This fixes the software interrupt number for non-SMP cases

Signed-off-by: Yanfeng Liu <[email protected]>
  • Loading branch information
yf13 committed Aug 14, 2024
1 parent af10e1b commit daa4bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/risc-v/src/common/riscv_exception.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,6 @@ void riscv_exception_attach(void)
#ifdef CONFIG_SMP
irq_attach(RISCV_IRQ_SOFT, riscv_pause_handler, NULL);
#else
irq_attach(RISCV_IRQ_MSOFT, riscv_exception, NULL);
irq_attach(RISCV_IRQ_SOFT, riscv_exception, NULL);
#endif
}

0 comments on commit daa4bde

Please sign in to comment.