diff --git a/libcpu/risc-v/rv32m1/interrupt_gcc.S b/libcpu/risc-v/rv32m1/interrupt_gcc.S index d74cf441bcab36a7c1014e433c11b88a67f6b06e..eacf667c67cfe1f6b3056cd983c9ba413625c987 100644 --- a/libcpu/risc-v/rv32m1/interrupt_gcc.S +++ b/libcpu/risc-v/rv32m1/interrupt_gcc.S @@ -69,10 +69,10 @@ IRQ_Handler: /* need to switch new thread */ la s0, rt_thread_switch_interrupt_flag - LOAD s2, 0(s0) + lw s2, 0(s0) beqz s2, spurious_interrupt /* clear switch interrupt flag */ - STORE zero, 0(s0) + sw zero, 0(s0) csrr a0, mepc STORE a0, 0 * REGBYTES(sp)