diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 07:31:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:12 -0500 |
commit | 010d4f8221cf51a2ab8b037d0149506b397d073f (patch) | |
tree | 3e1e1cb1d92cac074fe689291feddb973343941f /include/asm-x86/desc_defs.h | |
parent | 7e6ebe1432b04c2980cd030c9f0d1ed480e1fe4d (diff) |
x86: introduce gate_desc type.
To account for the differences in gate descriptor in i386 and x86_64
a gate_desc type is introduced.
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/desc_defs.h')
-rw-r--r-- | include/asm-x86/desc_defs.h | 8 |
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 |
42 | struct gate_struct { | 42 | struct 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 | ||
71 | typedef struct gate_struct64 gate_desc; | ||
72 | #else | ||
73 | typedef struct desc_struct gate_desc; | ||
74 | #endif | ||
75 | |||
70 | struct desc_ptr { | 76 | struct desc_ptr { |
71 | unsigned short size; | 77 | unsigned short size; |
72 | unsigned long address; | 78 | unsigned long address; |