summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/lwp/arch/risc-v/rv64/lwp_gcc.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/lwp/arch/risc-v/rv64/lwp_gcc.S b/components/lwp/arch/risc-v/rv64/lwp_gcc.S
index c207285c6f..9290923191 100644
--- a/components/lwp/arch/risc-v/rv64/lwp_gcc.S
+++ b/components/lwp/arch/risc-v/rv64/lwp_gcc.S
@@ -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);
*/