forked from Firmware/Firmwares
fix wrong exit call
This commit is contained in:
parent
36a6de6dc0
commit
4c2208c1ac
Binary file not shown.
@ -58,8 +58,8 @@ extern "C" void handle_m_ext_interrupt() {
|
|||||||
plic_source int_num = PLIC_claim_interrupt(&g_plic);
|
plic_source int_num = PLIC_claim_interrupt(&g_plic);
|
||||||
if ((int_num >=1 ) && (int_num < PLIC_NUM_INTERRUPTS))
|
if ((int_num >=1 ) && (int_num < PLIC_NUM_INTERRUPTS))
|
||||||
g_ext_interrupt_handlers[int_num]();
|
g_ext_interrupt_handlers[int_num]();
|
||||||
else
|
//else
|
||||||
exit(1 + (uintptr_t) int_num);
|
// exit(1 + (uintptr_t) int_num);
|
||||||
PLIC_complete_interrupt(&g_plic, int_num);
|
PLIC_complete_interrupt(&g_plic, int_num);
|
||||||
}
|
}
|
||||||
/*! \brief mtime interval interrupt
|
/*! \brief mtime interval interrupt
|
||||||
|
Loading…
Reference in New Issue
Block a user