[RFC,8/9,gnumach] Add i386_fsgs_base_state

Message ID 20230218203717.373211-9-bugaevc@gmail.com
State Not applicable, archived
Headers
Series More x86_64-gnu glibc work |

Checks

Context Check Description
dj/TryBot-apply_patch fail Patch failed to apply to master at the time it was sent

Commit Message

Sergey Bugaev Feb. 18, 2023, 8:37 p.m. UTC
  ---
 i386/include/mach/i386/thread_status.h | 8 ++++++++
 1 file changed, 8 insertions(+)
  

Patch

diff --git a/i386/include/mach/i386/thread_status.h b/i386/include/mach/i386/thread_status.h
index 3de22ff3..32e40686 100644
--- a/i386/include/mach/i386/thread_status.h
+++ b/i386/include/mach/i386/thread_status.h
@@ -57,6 +57,7 @@ 
 #define	i386_V86_ASSIST_STATE	4
 #define	i386_REGS_SEGS_STATE	5
 #define	i386_DEBUG_STATE	6
+#define	i386_FSGS_BASE_STATE	7
 
 /*
  * This structure is used for both
@@ -179,4 +180,11 @@  struct i386_debug_state {
 #define	i386_DEBUG_STATE_COUNT \
 	    (sizeof(struct i386_debug_state)/sizeof(unsigned int))
 
+struct i386_fsgs_base_state {
+	unsigned long fs_base;
+	unsigned long gs_base;
+};
+#define i386_FSGS_BASE_STATE_COUNT \
+	    (sizeof(struct i386_fsgs_base_state)/sizeof(unsigned int))
+
 #endif	/* _MACH_I386_THREAD_STATUS_H_ */