summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/risc-v/common/context_gcc.S2
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