Browse Source

[libcpu/common] 修正对RV32E的支持,RV32E不支持s2寄存器,修改为s1寄存器

Yaochenger 4 weeks ago
parent
commit
5889db6819
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libcpu/risc-v/common/interrupt_gcc.S

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

@@ -337,8 +337,8 @@ trap_entry:
 
     /* need to switch new thread */
     la    s0, rt_thread_switch_interrupt_flag
-    lw    s2, 0(s0)
-    beqz  s2, spurious_interrupt
+    lw    s1, 0(s0)
+    beqz  s1, spurious_interrupt
     sw    zero, 0(s0)
 
     la    s0, rt_interrupt_from_thread