Linux 4.13.16
[linux/fpc-iii.git] / arch / x86 / um / asm / segment.h
blob41dd5e1f3cd705b7c70f08d50efb2c67811b4a62
1 #ifndef __UM_SEGMENT_H
2 #define __UM_SEGMENT_H
4 extern int host_gdt_entry_tls_min;
6 #define GDT_ENTRY_TLS_ENTRIES 3
7 #define GDT_ENTRY_TLS_MIN host_gdt_entry_tls_min
8 #define GDT_ENTRY_TLS_MAX (GDT_ENTRY_TLS_MIN + GDT_ENTRY_TLS_ENTRIES - 1)
10 typedef struct {
11 unsigned long seg;
12 } mm_segment_t;
14 #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
15 #define KERNEL_DS MAKE_MM_SEG(~0UL)
16 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
18 #endif