We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95b1d69 commit 2673a12Copy full SHA for 2673a12
components/lwp/arch/risc-v/rv64/lwp_gcc.S
@@ -178,6 +178,9 @@ arch_thread_signal_enter:
178
/* restore user GP */
179
LOAD gp, FRAME_OFF_GP(s3)
180
181
+ /* restore user TP */
182
+ LOAD tp, FRAME_OFF_TP(s3)
183
+
184
/**
185
* handler(signo, psi, ucontext);
186
*/
libcpu/risc-v/common64/stackframe.h
@@ -41,6 +41,7 @@
41
#define FRAME_OFF_SSTATUS BYTES(2)
42
#define FRAME_OFF_SP BYTES(32)
43
#define FRAME_OFF_GP BYTES(3)
44
+#define FRAME_OFF_TP BYTES(4)
45
46
/* switch frame */
47
#define RT_HW_SWITCH_CONTEXT_SSTATUS 0
0 commit comments