111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/**************************************************************************** 211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert **************************************************************************** 311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** 411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** This header was automatically generated from a Linux kernel header 511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** of the same name, to make information necessary for userspace to 611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** call into the kernel available to libc. It contains only constants, 711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** structures, and macros generated from the original header, and thus, 811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** contains no copyrightable information. 911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** 1011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** To edit the content of this header, modify the corresponding 1111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** source file (e.g. under external/kernel-headers/original/) then 1211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** run bionic/libc/kernel/tools/update_all.py 1311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** 1411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** Any manual change here will be lost the next time this script will 1511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** be run. You've been warned! 1611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** 1711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert **************************************************************************** 1811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ****************************************************************************/ 1911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#ifndef _ASM_X86_LDT_H 2011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define _ASM_X86_LDT_H 2111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define LDT_ENTRIES 8192 2211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define LDT_ENTRY_SIZE 8 2311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#ifndef __ASSEMBLY__ 2511cd02dfb91661c65134cac258cf5924270e9d2Dan Albertstruct user_desc { 2611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert unsigned int entry_number; 2711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert unsigned int base_addr; 2811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert unsigned int limit; 3011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert unsigned int seg_32bit:1; 3111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert unsigned int contents:2; 3211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert unsigned int read_exec_only:1; 3311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert unsigned int limit_in_pages:1; 3511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert unsigned int seg_not_present:1; 3611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert unsigned int useable:1; 3711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#ifdef __x86_64__ 3811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert unsigned int lm:1; 4011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#endif 4111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert}; 4211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define MODIFY_LDT_CONTENTS_DATA 0 4311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 4411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define MODIFY_LDT_CONTENTS_STACK 1 4511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define MODIFY_LDT_CONTENTS_CODE 2 4611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#endif 4711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#endif 4811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49