Home | History | Annotate | Download | only in asm
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      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.
      9  ***
     10  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _ASM_X86_LDT_H
     13 #define _ASM_X86_LDT_H
     14 
     15 #define LDT_ENTRIES 8192
     16 
     17 #define LDT_ENTRY_SIZE 8
     18 
     19 #ifndef __ASSEMBLY__
     20 
     21 struct user_desc {
     22  unsigned int entry_number;
     23  unsigned int base_addr;
     24  unsigned int limit;
     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;
     31 #ifdef __x86_64__
     32  unsigned int lm:1;
     33 #endif
     34 };
     35 
     36 #define MODIFY_LDT_CONTENTS_DATA 0
     37 #define MODIFY_LDT_CONTENTS_STACK 1
     38 #define MODIFY_LDT_CONTENTS_CODE 2
     39 
     40 #endif
     41 #endif
     42