···11-#ifdef __i386__22-#include "tls_32.h"33-#else44-#include "tls_64.h"11+#ifndef _SYSDEP_TLS_H22+#define _SYSDEP_TLS_H33+44+# ifndef __KERNEL__55+66+/* Change name to avoid conflicts with the original one from <asm/ldt.h>, which77+ * may be named user_desc (but in 2.4 and in header matching its API was named88+ * modify_ldt_ldt_s). */99+1010+typedef struct um_dup_user_desc {1111+ unsigned int entry_number;1212+ unsigned int base_addr;1313+ unsigned int limit;1414+ unsigned int seg_32bit:1;1515+ unsigned int contents:2;1616+ unsigned int read_exec_only:1;1717+ unsigned int limit_in_pages:1;1818+ unsigned int seg_not_present:1;1919+ unsigned int useable:1;2020+#ifdef __x86_64__2121+ unsigned int lm:1;522#endif2323+} user_desc_t;2424+2525+# else /* __KERNEL__ */2626+2727+# include <ldt.h>2828+typedef struct user_desc user_desc_t;2929+3030+# endif /* __KERNEL__ */3131+3232+#ifdef __i386__3333+#define GDT_ENTRY_TLS_MIN_I386 63434+#define GDT_ENTRY_TLS_MIN_X86_64 123535+#endif3636+3737+#endif /* _SYSDEP_TLS_H */
-32
arch/x86/um/shared/sysdep/tls_32.h
···11-#ifndef _SYSDEP_TLS_H22-#define _SYSDEP_TLS_H33-44-# ifndef __KERNEL__55-66-/* Change name to avoid conflicts with the original one from <asm/ldt.h>, which77- * may be named user_desc (but in 2.4 and in header matching its API was named88- * modify_ldt_ldt_s). */99-1010-typedef struct um_dup_user_desc {1111- unsigned int entry_number;1212- unsigned int base_addr;1313- unsigned int limit;1414- unsigned int seg_32bit:1;1515- unsigned int contents:2;1616- unsigned int read_exec_only:1;1717- unsigned int limit_in_pages:1;1818- unsigned int seg_not_present:1;1919- unsigned int useable:1;2020-} user_desc_t;2121-2222-# else /* __KERNEL__ */2323-2424-# include <ldt.h>2525-typedef struct user_desc user_desc_t;2626-2727-# endif /* __KERNEL__ */2828-2929-#define GDT_ENTRY_TLS_MIN_I386 63030-#define GDT_ENTRY_TLS_MIN_X86_64 123131-3232-#endif /* _SYSDEP_TLS_H */
-29
arch/x86/um/shared/sysdep/tls_64.h
···11-#ifndef _SYSDEP_TLS_H22-#define _SYSDEP_TLS_H33-44-# ifndef __KERNEL__55-66-/* Change name to avoid conflicts with the original one from <asm/ldt.h>, which77- * may be named user_desc (but in 2.4 and in header matching its API was named88- * modify_ldt_ldt_s). */99-1010-typedef struct um_dup_user_desc {1111- unsigned int entry_number;1212- unsigned int base_addr;1313- unsigned int limit;1414- unsigned int seg_32bit:1;1515- unsigned int contents:2;1616- unsigned int read_exec_only:1;1717- unsigned int limit_in_pages:1;1818- unsigned int seg_not_present:1;1919- unsigned int useable:1;2020- unsigned int lm:1;2121-} user_desc_t;2222-2323-# else /* __KERNEL__ */2424-2525-# include <ldt.h>2626-typedef struct user_desc user_desc_t;2727-2828-# endif /* __KERNEL__ */2929-#endif /* _SYSDEP_TLS_H */