aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/desc_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/desc_defs.h')
-rw-r--r--include/asm-x86/desc_defs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-x86/desc_defs.h b/include/asm-x86/desc_defs.h
index de47eb0a23aa..9732285116af 100644
--- a/include/asm-x86/desc_defs.h
+++ b/include/asm-x86/desc_defs.h
@@ -39,7 +39,7 @@ enum {
39}; 39};
40 40
41// 16byte gate 41// 16byte gate
42struct gate_struct { 42struct gate_struct64 {
43 u16 offset_low; 43 u16 offset_low;
44 u16 segment; 44 u16 segment;
45 unsigned ist : 3, zero0 : 5, type : 5, dpl : 2, p : 1; 45 unsigned ist : 3, zero0 : 5, type : 5, dpl : 2, p : 1;
@@ -67,6 +67,12 @@ struct ldttss_desc {
67 u32 zero1; 67 u32 zero1;
68} __attribute__((packed)); 68} __attribute__((packed));
69 69
70#ifdef CONFIG_X86_64
71typedef struct gate_struct64 gate_desc;
72#else
73typedef struct desc_struct gate_desc;
74#endif
75
70struct desc_ptr { 76struct desc_ptr {
71 unsigned short size; 77 unsigned short size;
72 unsigned long address; 78 unsigned long address;