riscv: Get the lock first when handling interrupts

Get the lock when handling interrupts.
This commit is contained in:
Yanyan Shen
2019-08-06 19:41:49 +10:00
committed by Yanyan Shen
parent 79e0613c76
commit fa696b8585

View File

@@ -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();