arch/riscv: fix IRQ_SOFT for non-SMP

This fixes software interrupt number for non-SMP cases

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
Yanfeng Liu 2024-08-14 11:47:42 +08:00 committed by Xiang Xiao
parent 819685fbec
commit 41dba46c1d

View File

@ -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
}