1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef __ARCH_DESC_DEFS_H
13 #define __ARCH_DESC_DEFS_H
17 #include <linux/types.h>
22 unsigned base1 : 8, type : 4, s : 1, dpl : 2, p : 1;
23 unsigned limit : 4, avl : 1, l : 1, d : 1, g : 1, base2 : 8;
24 } __attribute__((packed));
26 struct n_desc_struct {
39 unsigned ist : 3, zero0 : 5, type : 5, dpl : 2, p : 1;
43 } __attribute__((packed));
45 #define PTR_LOW(x) ((unsigned long)(x) & 0xFFFF)
46 #define PTR_MIDDLE(x) (((unsigned long)(x) >> 16) & 0xFFFF)
47 #define PTR_HIGH(x) ((unsigned long)(x) >> 32)
57 unsigned base1 : 8, type : 5, dpl : 2, p : 1;
58 unsigned limit1 : 4, zero0 : 3, g : 1, base2 : 8;
61 } __attribute__((packed));
65 unsigned long address;
66 } __attribute__((packed)) ;