1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _ASM_X86_LDT_H
13 #define _ASM_X86_LDT_H
15 #define LDT_ENTRIES 8192
17 #define LDT_ENTRY_SIZE 8
22 unsigned int entry_number;
23 unsigned int base_addr;
25 unsigned int seg_32bit:1;
26 unsigned int contents:2;
27 unsigned int read_exec_only:1;
28 unsigned int limit_in_pages:1;
29 unsigned int seg_not_present:1;
30 unsigned int useable:1;
36 #define MODIFY_LDT_CONTENTS_DATA 0
37 #define MODIFY_LDT_CONTENTS_STACK 1
38 #define MODIFY_LDT_CONTENTS_CODE 2