Explorar o código

修改了上下文切换退出时的bug,该bug会导致中断被提前打开造成死锁

ZhangTao %!s(int64=5) %!d(string=hai) anos
pai
achega
80a4912baf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libcpu/risc-v/common/context_gcc.S

+ 1 - 1
libcpu/risc-v/common/context_gcc.S

@@ -175,7 +175,7 @@ rt_hw_context_switch_exit:
     LOAD x1,   1 * REGBYTES(sp)
 
     li    t0, 0x00001800
-    csrs  mstatus, t0
+    csrw  mstatus, t0
     LOAD a0,   2 * REGBYTES(sp)
     csrs mstatus, a0