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 | 507f90c9f92592e7630b1c1e87bf92d2c9858cc6 (patch) | |
tree | 23e011c11bc221e1c51702ca7dc748d2b241005d /include/asm-x86/desc_defs.h | |
parent | 54cd0eac7286b83ef1a657d2dddd74e0556209e7 (diff) |
x86: move _set_gate and its users to a common location
This patch moves _set_gate and its users to desc.h. We can now
use common code for x86_64 and i386.
[ mingo@elte.hu: set_system_gate() fixes for nasty crashes. ]
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 | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/asm-x86/desc_defs.h b/include/asm-x86/desc_defs.h index ebb64fe3a45..e33f078b3e5 100644 --- a/include/asm-x86/desc_defs.h +++ b/include/asm-x86/desc_defs.h | |||
@@ -36,6 +36,7 @@ enum { | |||
36 | GATE_INTERRUPT = 0xE, | 36 | GATE_INTERRUPT = 0xE, |
37 | GATE_TRAP = 0xF, | 37 | GATE_TRAP = 0xF, |
38 | GATE_CALL = 0xC, | 38 | GATE_CALL = 0xC, |
39 | GATE_TASK = 0x5, | ||
39 | }; | 40 | }; |
40 | 41 | ||
41 | // 16byte gate | 42 | // 16byte gate |
@@ -55,10 +56,6 @@ struct gate_struct64 { | |||
55 | enum { | 56 | enum { |
56 | DESC_TSS = 0x9, | 57 | DESC_TSS = 0x9, |
57 | DESC_LDT = 0x2, | 58 | 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 */ | 59 | DESCTYPE_S = 0x10, /* !system */ |
63 | }; | 60 | }; |
64 | 61 | ||