summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/lwp/arch/risc-v/rv64/lwp_gcc.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/lwp/arch/risc-v/rv64/lwp_gcc.S b/components/lwp/arch/risc-v/rv64/lwp_gcc.S
index 0f97b4ab78..61db9b24e5 100644
--- a/components/lwp/arch/risc-v/rv64/lwp_gcc.S
+++ b/components/lwp/arch/risc-v/rv64/lwp_gcc.S
@@ -40,7 +40,7 @@ arch_start_umode:
csrs sstatus, t0
csrw sepc, a1
- mv a3, a2
+ mv sp, a2
sret//enter user mode
/*