diff options
| author | heyuanjie87 <[email protected]> | 2024-05-29 06:52:38 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-29 06:52:38 +0800 |
| commit | 326150e2f4991679f5a4e39cfdc42378a328e983 (patch) | |
| tree | e7b79f9e602de4feca49e9aba9e0f317ec3605ba /components | |
| parent | 3172d37db7326c8550957dc67080258f947b7580 (diff) | |
[lwp/riscv]进入libc前初始化用户态sp (#8997)
Diffstat (limited to 'components')
| -rw-r--r-- | components/lwp/arch/risc-v/rv64/lwp_gcc.S | 2 |
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 /* |
