mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
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:
@@ -304,6 +304,6 @@ void riscv_exception_attach(void)
|
|||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
irq_attach(RISCV_IRQ_SOFT, riscv_pause_handler, NULL);
|
irq_attach(RISCV_IRQ_SOFT, riscv_pause_handler, NULL);
|
||||||
#else
|
#else
|
||||||
irq_attach(RISCV_IRQ_MSOFT, riscv_exception, NULL);
|
irq_attach(RISCV_IRQ_SOFT, riscv_exception, NULL);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user