]> xenbits.xensource.com Git - people/liuw/xtf.git/commitdiff
Reserve space in the GDT for test use
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 May 2016 09:29:48 +0000 (10:29 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 May 2016 09:29:57 +0000 (10:29 +0100)
Currently four entries, although this is an arbitrary choice.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
include/arch/x86/segment.h

index 7ac52f9b4624d7bfd7223f14d71b7c19961b4f8f..a251a74a11a9d438e8f4d78ae1322587a701fe56 100644 (file)
@@ -17,6 +17,8 @@
  *  5 - 32bit userspace code
  *  6 - 32bit userspace data
  *  7 - TSS (two slots in long mode)
+ *
+ *  9-12 - Available for test use
  */
 
 #define GDTE_CS64_DPL0 1
 
 #define GDTE_TSS 7
 
-#define NR_GDT_ENTRIES 9
+#define GDTE_AVAIL0     9
+#define GDTE_AVAIL1    10
+#define GDTE_AVAIL2    11
+#define GDTE_AVAIL3    12
+
+#define NR_GDT_ENTRIES 13
 
 /*
  * HVM guests use the GDT directly.