summaryrefslogtreecommitdiff
path: root/libcpu/risc-v
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-12-15 11:47:59 +0800
committerGitHub <[email protected]>2018-12-15 11:47:59 +0800
commit885d99ee9b76bfdd838d5b3f358137fe255d92e7 (patch)
tree61cad1e3630558e9217e9fa078f1212ee8730134 /libcpu/risc-v
parentfd347fdb9026af8f2b15d362c1118cab46ffc2c9 (diff)
[libcpu][risc-v] fix rt_thread_switch_interrupt_flag issue.
Diffstat (limited to 'libcpu/risc-v')
-rw-r--r--libcpu/risc-v/rv32m1/interrupt_gcc.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/risc-v/rv32m1/interrupt_gcc.S b/libcpu/risc-v/rv32m1/interrupt_gcc.S
index d74cf441bc..eacf667c67 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)