mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[lwp/riscv]进入libc前初始化用户态sp (#8997)
This commit is contained in:
1 parent
3172d37db7
commit
326150e2f4
1 file changed
+1
-1
@@ -40,7 +40,7 @@ arch_start_umode:
|
||||
csrs sstatus, t0
|
||||
|
||||
csrw sepc, a1
|
||||
mv a3, a2
|
||||
mv sp, a2
|
||||
sret//enter user mode
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user