mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 18:57:16 +08:00
[lwp][rv64] restore tp register in arch_thread_signal_enter to fix user-mode memory access
This commit is contained in:
@@ -178,6 +178,9 @@ arch_thread_signal_enter:
|
||||
/* restore user GP */
|
||||
LOAD gp, FRAME_OFF_GP(s3)
|
||||
|
||||
/* restore user TP */
|
||||
LOAD tp, FRAME_OFF_TP(s3)
|
||||
|
||||
/**
|
||||
* handler(signo, psi, ucontext);
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user