diff options
| author | ZhangTao <[email protected]> | 2019-11-05 10:30:47 +0800 |
|---|---|---|
| committer | ZhangTao <[email protected]> | 2019-11-05 10:30:47 +0800 |
| commit | 80a4912baf79d46c696ab4a5c7da92fb511d8cd9 (patch) | |
| tree | fc25342911f6034308450102fa5a96e6a3ab6f5f | |
| parent | 2c55f11b67bd9255324f55ffc7dedef7e8610d76 (diff) | |
修改了上下文切换退出时的bug,该bug会导致中断被提前打开造成死锁
| -rw-r--r-- | libcpu/risc-v/common/context_gcc.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/risc-v/common/context_gcc.S b/libcpu/risc-v/common/context_gcc.S index f28b15319b..5c9f05c4e8 100644 --- a/libcpu/risc-v/common/context_gcc.S +++ b/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 |
