From fa696b8585903278730c9bab1f39403a24745d84 Mon Sep 17 00:00:00 2001 From: Yanyan Shen Date: Tue, 6 Aug 2019 19:41:49 +1000 Subject: [PATCH] riscv: Get the lock first when handling interrupts Get the lock when handling interrupts. --- src/arch/riscv/c_traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/riscv/c_traps.c b/src/arch/riscv/c_traps.c index 27c580415..b0227136a 100644 --- a/src/arch/riscv/c_traps.c +++ b/src/arch/riscv/c_traps.c @@ -102,7 +102,7 @@ void VISIBLE NORETURN restore_user_context(void) void VISIBLE NORETURN c_handle_interrupt(void) { - NODE_LOCK_IRQ; + NODE_LOCK_IRQ_IF(getActiveIRQ() != irq_remote_call_ipi); c_entry_hook();