From f72ca3db5c94348d2c276ef29f4a866958766062 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Thu, 31 Mar 2022 15:08:49 +0800 Subject: [PATCH] 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 --- arch/risc-v/src/common/riscv_doirq.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/arch/risc-v/src/common/riscv_doirq.c b/arch/risc-v/src/common/riscv_doirq.c index 6c7471d2a2..0465f9ded6 100644 --- a/arch/risc-v/src/common/riscv_doirq.c +++ b/arch/risc-v/src/common/riscv_doirq.c @@ -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;