arch/risc-v: Dont' disable/enable irq in riscv_doirq

Since these codes added to all chips but not fully tested,
so we should changd this behavior.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2022-03-31 15:08:49 +08:00 committed by Xiang Xiao
parent 32fe25278a
commit f72ca3db5c

View File

@ -70,12 +70,6 @@ uintptr_t *riscv_doirq(int irq, uintptr_t *regs)
DEBUGASSERT(CURRENT_REGS == NULL);
CURRENT_REGS = regs;
/* Disable further occurrences of this interrupt (until the interrupt
* sources have been clear by the driver).
*/
up_disable_irq(irq);
/* Deliver the IRQ */
irq_dispatch(irq, regs);
@ -114,9 +108,6 @@ uintptr_t *riscv_doirq(int irq, uintptr_t *regs)
CURRENT_REGS = NULL;
/* Unmask the last interrupt (global interrupts are still disabled) */
up_enable_irq(irq);
#endif
board_autoled_off(LED_INIRQ);
return regs;