[lwp][rv64] restore tp register in arch_thread_signal_enter to fix user-mode memory access

This commit is contained in:
Yulong Wang
2025-07-23 09:38:35 +08:00
committed by Rbb666
parent 3c046646cb
commit e7a40ae6ec
2 changed files with 4 additions and 0 deletions
@@ -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);
*/