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 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef _ASM_X86_LDT_H 20#define _ASM_X86_LDT_H 21#define LDT_ENTRIES 8192 22#define LDT_ENTRY_SIZE 8 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#ifndef __ASSEMBLY__ 25struct user_desc { 26 unsigned int entry_number; 27 unsigned int base_addr; 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 unsigned int limit; 30 unsigned int seg_32bit:1; 31 unsigned int contents:2; 32 unsigned int read_exec_only:1; 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 unsigned int limit_in_pages:1; 35 unsigned int seg_not_present:1; 36 unsigned int useable:1; 37#ifdef __x86_64__ 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 unsigned int lm:1; 40#endif 41}; 42#define MODIFY_LDT_CONTENTS_DATA 0 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44#define MODIFY_LDT_CONTENTS_STACK 1 45#define MODIFY_LDT_CONTENTS_CODE 2 46#endif 47#endif 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49