Browse Source

[lwp/riscv]进入libc前初始化用户态sp (#8997)

heyuanjie87 11 months ago
parent
commit
326150e2f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/lwp/arch/risc-v/rv64/lwp_gcc.S

+ 1 - 1
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
 
 /*