mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +00:00
[rv]信号处理进入用户态前恢复gp (#9072)
* [rv/virt/stackframe.h]添加GP寄存器保存偏移量宏 * 【rv/c906/stackframe.h]定义GP寄存器存储偏移量 * [rv]信号处理切换到用户态前恢复gp
This commit is contained in:
@@ -174,6 +174,9 @@ arch_thread_signal_enter:
|
||||
/* dummy a2 */
|
||||
mv a2, a1
|
||||
|
||||
/* restore user GP */
|
||||
LOAD gp, FRAME_OFF_GP(s3)
|
||||
|
||||
/**
|
||||
* handler(signo, psi, ucontext);
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user