]> xenbits.xensource.com Git - people/royger/xen-test-framework.git/commitdiff
Expose the GDT to C code
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 30 Oct 2015 14:49:37 +0000 (14:49 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 12 Nov 2015 13:29:16 +0000 (13:29 +0000)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
include/arch/x86/desc.h

index b52d68533d14446bf11f56773c401fe360c057e4..6f48754c76cdb1f996c446834bf2dbe6d5df6c4f 100644 (file)
@@ -11,6 +11,8 @@
 #include <xtf/compiler.h>
 #include <xtf/macro_magic.h>
 
+#include <arch/x86/segment.h>
+
 /** 8 byte user segment descriptor (GDT/LDT entries with .s = 1) */
 struct __packed seg_desc32 {
     union {
@@ -136,6 +138,9 @@ typedef struct seg_desc32 user_desc;
 # error Bad architecture for descriptor infrastructure
 #endif
 
+extern user_desc gdt[NR_GDT_ENTRIES];
+extern desc_ptr  gdt_ptr;
+
 #endif /* XTF_X86_DESC_H */
 
 /*