mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
MPFS: Use riscv_exception_attach like the others do
Exception / fault handling goes to unexpected ISR, fix by setting the common ISR handlers like all other RISC-V platforms do.
This commit is contained in:
@@ -98,15 +98,9 @@ void up_irqinitialize(void)
|
|||||||
|
|
||||||
CURRENT_REGS = NULL;
|
CURRENT_REGS = NULL;
|
||||||
|
|
||||||
/* Attach the ecall interrupt handler */
|
/* Attach the common interrupt handler */
|
||||||
|
|
||||||
#ifndef CONFIG_ARCH_USE_S_MODE
|
riscv_exception_attach();
|
||||||
irq_attach(RISCV_IRQ_ECALLM, riscv_swint, NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_BUILD_FLAT
|
|
||||||
irq_attach(RISCV_IRQ_ECALLU, riscv_swint, NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_SUPPRESS_INTERRUPTS
|
#ifndef CONFIG_SUPPRESS_INTERRUPTS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user