diff --git a/libcpu/risc-v/common/context_gcc.S b/libcpu/risc-v/common/context_gcc.S index f28b15319b4f93907670919874d8f0163bb6dcba..5c9f05c4e88935f0fcbb8851a1e7ac0af748197d 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