]> xenbits.xensource.com Git - xtf.git/commitdiff
Introduce mnemonics for x86 selectors
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 6 Oct 2016 16:52:39 +0000 (17:52 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Oct 2016 11:41:28 +0000 (12:41 +0100)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
include/arch/x86/processor.h

index afb4dd6b217d23ee939ce1373dd81ece6dc3b90c..21054e74738282266b966283fcc49ffcb46732fa 100644 (file)
 #define X86_PFEC_INSN     (1U << 4)
 #define X86_PFEC_PK       (1U << 5)
 
+/*
+ * Selector mnemonics.
+ */
+/* Architecturally defined. */
+#define X86_SEL_TI        (1U << 2) /* Table Indicator. */
+
+/* Supplemental constants. */
+#define X86_SEL_RPL_MASK  3         /* RPL is the bottom two bits. */
+#define X86_SEL_GDT       0
+#define X86_SEL_LDT       X86_SEL_TI
+
 #endif /* XTF_X86_PROCESSOR_H */
 
 /*