Files
android_development/ndk/platforms/android-20/arch-x86/include/asm/ldt.h
Andrew Hsieh 79d3fcb11e Add android-20 bionic headers/symbols for 32-bit
Note that this is for bionic headers to be consistent with 64-bit
headers tentatively placed at android-20. ie.

1. bionic headers in all the existing 32-bit headers android-3 .. 19
   are consistent, and don't track any new development in bionic/
   since JB (the time when significant refactoring work starts in bionic/)
   unless bug fixes.
2. bionic headers in android-20 tracks bionic/

Change-Id: Ia07f04ac03ffaef6a6ddcea5f0e6b891e21a869a
2014-04-20 22:18:57 -07:00

49 lines
1.9 KiB
C

/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call into the kernel available to libc. It contains only constants,
*** structures, and macros generated from the original header, and thus,
*** contains no copyrightable information.
***
*** To edit the content of this header, modify the corresponding
*** source file (e.g. under external/kernel-headers/original/) then
*** run bionic/libc/kernel/tools/update_all.py
***
*** Any manual change here will be lost the next time this script will
*** be run. You've been warned!
***
****************************************************************************
****************************************************************************/
#ifndef _ASM_X86_LDT_H
#define _ASM_X86_LDT_H
#define LDT_ENTRIES 8192
#define LDT_ENTRY_SIZE 8
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#ifndef __ASSEMBLY__
struct user_desc {
unsigned int entry_number;
unsigned int base_addr;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
unsigned int limit;
unsigned int seg_32bit:1;
unsigned int contents:2;
unsigned int read_exec_only:1;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
unsigned int limit_in_pages:1;
unsigned int seg_not_present:1;
unsigned int useable:1;
#ifdef __x86_64__
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
unsigned int lm:1;
#endif
};
#define MODIFY_LDT_CONTENTS_DATA 0
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#define MODIFY_LDT_CONTENTS_STACK 1
#define MODIFY_LDT_CONTENTS_CODE 2
#endif
#endif
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */