summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i386/i386/gdt.c6
-rw-r--r--i386/i386/trap.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/i386/i386/gdt.c b/i386/i386/gdt.c
index c3a9a7c..5523fea 100644
--- a/i386/i386/gdt.c
+++ b/i386/i386/gdt.c
@@ -69,13 +69,17 @@ gdt_init()
pmap_set_page_readonly(gdt);
if (hyp_set_gdt(kv_to_la(&frame), GDTSZ))
panic("couldn't set gdt\n");
+#endif
+#ifdef MACH_PV_PAGETABLES
if (hyp_vm_assist(VMASST_CMD_enable, VMASST_TYPE_4gb_segments))
panic("couldn't set 4gb segments vm assist");
#if 0
if (hyp_vm_assist(VMASST_CMD_enable, VMASST_TYPE_4gb_segments_notify))
panic("couldn't set 4gb segments vm assist notify");
#endif
-#else /* MACH_PV_DESCRIPTORS */
+#endif /* MACH_PV_PAGETABLES */
+
+#ifndef MACH_PV_DESCRIPTORS
/* Load the new GDT. */
{
struct pseudo_descriptor pdesc;
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index 74a89f9..c6aab48 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -510,7 +510,7 @@ printf("user trap %d error %d sub %08x\n", type, code, subcode);
/*NOTREACHED*/
break;
-#ifdef MACH_XEN
+#ifdef MACH_PV_PAGETABLES
case 15:
{
static unsigned count = 0;