blob: c901fee5bca342f04d979652a4b30de0ce1a8cd5 [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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 {
Tao Baod7db5942015-01-28 10:07:51 -080026 unsigned int entry_number;
27 unsigned int base_addr;
Elliott Hughesabd62612013-11-08 11:45:48 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 unsigned int limit;
30 unsigned int seg_32bit : 1;
31 unsigned int contents : 2;
32 unsigned int read_exec_only : 1;
Elliott Hughesabd62612013-11-08 11:45:48 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 unsigned int limit_in_pages : 1;
35 unsigned int seg_not_present : 1;
36 unsigned int useable : 1;
Elliott Hughesabd62612013-11-08 11:45:48 -080037#ifdef __x86_64__
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 unsigned int lm : 1;
Elliott Hughesabd62612013-11-08 11:45:48 -080040#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 */