summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorheyuanjie87 <[email protected]>2024-05-29 06:52:38 +0800
committerGitHub <[email protected]>2024-05-29 06:52:38 +0800
commit326150e2f4991679f5a4e39cfdc42378a328e983 (patch)
treee7b79f9e602de4feca49e9aba9e0f317ec3605ba /components
parent3172d37db7326c8550957dc67080258f947b7580 (diff)
[lwp/riscv]进入libc前初始化用户态sp (#8997)
Diffstat (limited to 'components')
-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
/*