Skip to content

Commit

Permalink
[lwp/riscv]进入libc前初始化用户态sp (RT-Thread#8997)
Browse files Browse the repository at this point in the history
  • Loading branch information
heyuanjie87 authored May 28, 2024
1 parent 3172d37 commit 326150e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lwp/arch/risc-v/rv64/lwp_gcc.S
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ arch_start_umode:
csrs sstatus, t0

csrw sepc, a1
mv a3, a2
mv sp, a2
sret//enter user mode

/*
Expand Down

0 comments on commit 326150e

Please sign in to comment.