[RFC,gnumach,01/34] Add i386_fsgs_base_state

Message ID 20230319151017.531737-2-bugaevc@gmail.com
State Committed, archived
Headers
Series The rest of the x86_64-gnu port |

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 March 19, 2023, 3:09 p.m. UTC
  ---
 i386/include/mach/i386/thread_status.h | 8 ++++++++
 1 file changed, 8 insertions(+)
  

Comments

Samuel Thibault April 2, 2023, 10:43 p.m. UTC | #1
Applied, thanks!

Sergey Bugaev, le dim. 19 mars 2023 18:09:44 +0300, a ecrit:
> ---
>  i386/include/mach/i386/thread_status.h | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> 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_ */
> -- 
> 2.39.2
>
  

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_ */