Bladeren bron

[libcpu][risc-v] fix the rt_thread_switch_interrupt_flag issue

Bernard Xiong 6 jaren geleden
bovenliggende
commit
fd347fdb90
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      libcpu/risc-v/e310/interrupt_gcc.S

+ 2 - 2
libcpu/risc-v/e310/interrupt_gcc.S

@@ -69,9 +69,9 @@ trap_entry:
 
 
     /* need to switch new thread */
     /* need to switch new thread */
     la    s0, rt_thread_switch_interrupt_flag
     la    s0, rt_thread_switch_interrupt_flag
-    LOAD  s2, 0(s0)
+    lw    s2, 0(s0)
     beqz  s2, spurious_interrupt
     beqz  s2, spurious_interrupt
-    STORE zero, 0(s0)
+    sw    zero, 0(s0)
 
 
     csrr  a0, mepc
     csrr  a0, mepc
     STORE a0, 0 * REGBYTES(sp)
     STORE a0, 0 * REGBYTES(sp)