summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/desc_defs.h
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-30 13:31:14 +0100
committerIngo Molnar <mingo@elte.hu>2008-01-30 13:31:14 +0100
commit59fbed775aa5a6f352bfbde6b40508b541086b7e (patch)
tree92dc3da55f8c9ce7c3c4fc14d43880ac8ad575be /include/asm-x86/desc_defs.h
parent75b8bb3e56ca09a467fbbe5229bc68627f7445be (diff)
downloadtalos-op-linux-59fbed775aa5a6f352bfbde6b40508b541086b7e.tar.gz
talos-op-linux-59fbed775aa5a6f352bfbde6b40508b541086b7e.zip
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>
Diffstat (limited to 'include/asm-x86/desc_defs.h')
-rw-r--r--include/asm-x86/desc_defs.h5
1 files changed, 5 insertions, 0 deletions
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 {
enum {
DESC_TSS = 0x9,
DESC_LDT = 0x2,
+ DESCTYPE_TASK = 0x85, /* present, system, DPL-0, task gate */
+ DESCTYPE_INT = 0x8e, /* present, system, DPL-0, interrupt gate */
+ DESCTYPE_TRAP = 0x8f, /* present, system, DPL-0, trap gate */
+ DESCTYPE_DPL3 = 0x60, /* DPL-3 */
+ DESCTYPE_S = 0x10, /* !system */
};
// LDT or TSS descriptor in the GDT. 16 bytes.
OpenPOWER on IntegriCloud