mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-01 04:14:28 +08:00
[lwp/riscv]进入libc前初始化用户态sp (#8997)
This commit is contained in:
@@ -40,7 +40,7 @@ arch_start_umode:
|
|||||||
csrs sstatus, t0
|
csrs sstatus, t0
|
||||||
|
|
||||||
csrw sepc, a1
|
csrw sepc, a1
|
||||||
mv a3, a2
|
mv sp, a2
|
||||||
sret//enter user mode
|
sret//enter user mode
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user