diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 07:31:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:14 -0500 |
commit | 59fbed775aa5a6f352bfbde6b40508b541086b7e (patch) | |
tree | 92dc3da55f8c9ce7c3c4fc14d43880ac8ad575be | |
parent | 75b8bb3e56ca09a467fbbe5229bc68627f7445be (diff) |
x86: move constants to desc_defs.h
this patch moves constant definitions regarding descriptor types
from desc_32.h to desc_defs.h. The change from defines to enum
to comply with previous versions in desc_defs.h
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>
-rw-r--r-- | include/asm-x86/desc_32.h | 8 | ||||
-rw-r--r-- | include/asm-x86/desc_defs.h | 5 |
2 files changed, 5 insertions, 8 deletions
diff --git a/include/asm-x86/desc_32.h b/include/asm-x86/desc_32.h index 92a72b0381e2..14238df87c7d 100644 --- a/include/asm-x86/desc_32.h +++ b/include/asm-x86/desc_32.h | |||
@@ -44,14 +44,6 @@ static inline void pack_gate(gate_desc *gate, | |||
44 | gate->b = (base & 0xffff0000) | ((type & 0xff) << 8) | (flags & 0xff); | 44 | gate->b = (base & 0xffff0000) | ((type & 0xff) << 8) | (flags & 0xff); |
45 | } | 45 | } |
46 | 46 | ||
47 | #define DESCTYPE_LDT 0x82 /* present, system, DPL-0, LDT */ | ||
48 | #define DESCTYPE_TSS 0x89 /* present, system, DPL-0, 32-bit TSS */ | ||
49 | #define DESCTYPE_TASK 0x85 /* present, system, DPL-0, task gate */ | ||
50 | #define DESCTYPE_INT 0x8e /* present, system, DPL-0, interrupt gate */ | ||
51 | #define DESCTYPE_TRAP 0x8f /* present, system, DPL-0, trap gate */ | ||
52 | #define DESCTYPE_DPL3 0x60 /* DPL-3 */ | ||
53 | #define DESCTYPE_S 0x10 /* !system */ | ||
54 | |||
55 | #ifdef CONFIG_PARAVIRT | 47 | #ifdef CONFIG_PARAVIRT |
56 | #include <asm/paravirt.h> | 48 | #include <asm/paravirt.h> |
57 | #else | 49 | #else |
diff --git a/include/asm-x86/desc_defs.h b/include/asm-x86/desc_defs.h index c811f1e0829f..79fe59fc50ec 100644 --- a/include/asm-x86/desc_defs.h +++ b/include/asm-x86/desc_defs.h | |||
@@ -55,6 +55,11 @@ struct gate_struct64 { | |||
55 | enum { | 55 | enum { |
56 | DESC_TSS = 0x9, | 56 | DESC_TSS = 0x9, |
57 | DESC_LDT = 0x2, | 57 | DESC_LDT = 0x2, |
58 | DESCTYPE_TASK = 0x85, /* present, system, DPL-0, task gate */ | ||
59 | DESCTYPE_INT = 0x8e, /* present, system, DPL-0, interrupt gate */ | ||
60 | DESCTYPE_TRAP = 0x8f, /* present, system, DPL-0, trap gate */ | ||
61 | DESCTYPE_DPL3 = 0x60, /* DPL-3 */ | ||
62 | DESCTYPE_S = 0x10, /* !system */ | ||
58 | }; | 63 | }; |
59 | 64 | ||
60 | // LDT or TSS descriptor in the GDT. 16 bytes. | 65 | // LDT or TSS descriptor in the GDT. 16 bytes. |