summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-12-15 11:47:10 +0800
committerGitHub <[email protected]>2018-12-15 11:47:10 +0800
commitfd347fdb9026af8f2b15d362c1118cab46ffc2c9 (patch)
tree51ed757597cc778ed6384cdc931a3d8f10935fcc
parent61b8db8ee9d3d649ee9b39d4e7e25516fa54117f (diff)
[libcpu][risc-v] fix the rt_thread_switch_interrupt_flag issue
-rw-r--r--libcpu/risc-v/e310/interrupt_gcc.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/risc-v/e310/interrupt_gcc.S b/libcpu/risc-v/e310/interrupt_gcc.S
index 297851d71e..1eac7af90a 100644
--- a/libcpu/risc-v/e310/interrupt_gcc.S
+++ b/libcpu/risc-v/e310/interrupt_gcc.S
@@ -69,9 +69,9 @@ trap_entry:
/* need to switch new thread */
la s0, rt_thread_switch_interrupt_flag
- LOAD s2, 0(s0)
+ lw s2, 0(s0)
beqz s2, spurious_interrupt
- STORE zero, 0(s0)
+ sw zero, 0(s0)
csrr a0, mepc
STORE a0, 0 * REGBYTES(sp)