summaryrefslogtreecommitdiff
path: root/i386/i386/ldt.c
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386/ldt.c')
-rw-r--r--i386/i386/ldt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/i386/i386/ldt.c b/i386/i386/ldt.c
index 58af94b..43b9efb 100644
--- a/i386/i386/ldt.c
+++ b/i386/i386/ldt.c
@@ -49,7 +49,9 @@ void
ldt_init()
{
#ifdef MACH_PV_DESCRIPTORS
+#ifdef MACH_PV_PAGETABLES
pmap_set_page_readwrite(ldt);
+#endif /* MACH_PV_PAGETABLES */
#else /* MACH_PV_DESCRIPTORS */
/* Initialize the master LDT descriptor in the GDT. */
fill_gdt_descriptor(KERNEL_LDT,