mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-04 21:11:40 +00:00
[lwp][rv64] restore tp register in arch_thread_signal_enter to fix user-mode memory access
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#define FRAME_OFF_SSTATUS BYTES(2)
|
||||
#define FRAME_OFF_SP BYTES(32)
|
||||
#define FRAME_OFF_GP BYTES(3)
|
||||
#define FRAME_OFF_TP BYTES(4)
|
||||
|
||||
/* switch frame */
|
||||
#define RT_HW_SWITCH_CONTEXT_SSTATUS 0
|
||||
|
||||
Reference in New Issue
Block a user