summaryrefslogtreecommitdiff
path: root/i386/i386/mp_desc.c
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-05-05 17:14:45 +0200
committerAlmuHS <almuhs@github.com>2019-05-05 17:15:36 +0200
commit2df0c646aa188aab00f2b119574da61a94353b59 (patch)
treea61de5feaafff9e0d71f4baf63e94aa252688d10 /i386/i386/mp_desc.c
parent4a3c2034436a02bd4f6e4178e370e882aa12e5e6 (diff)
experiment: try to enable pagging
Diffstat (limited to 'i386/i386/mp_desc.c')
-rw-r--r--i386/i386/mp_desc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index 1c8ca47d..eff54c87 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -346,6 +346,16 @@ cpu_setup()
break;
}
+#if 0
+
+#ifdef MACH_PV_PAGETABLES
+ for (i = 0; i < PDPNUM; i++)
+ pmap_set_page_readonly_init((void*) kernel_page_dir + i * INTEL_PGBYTES);
+#if PAE
+ pmap_set_page_readonly_init(kernel_pmap->pdpbase);
+#endif /* PAE */
+#endif /* MACH_PV_PAGETABLES */
+
#if PAE
set_cr3((unsigned)_kvtophys(kernel_pmap->pdpbase));
#ifndef MACH_HYP
@@ -367,6 +377,7 @@ cpu_setup()
set_cr4(get_cr4() | CR4_PGE);
#endif /* MACH_HYP */
+#endif
//slave_main(i);
printf("cpu %d enabled\n", cpu_number());