ref: b7e7e5ef3fb563b2f52c15a7a680d814ba477840
parent: 3e7d181191769eebb8f5bd64ce2bc8f9a7ef2a56
author: cinap_lenrek <[email protected]>
date: Wed Dec 17 21:04:42 EST 2014
pc: remove mmuinit0() all mmuinit0() does is initialize m->gdt, but this isnt neccesary as this is done by mmuinit() anyway before loading the gdt.
--- a/sys/src/9/pc/main.c
+++ b/sys/src/9/pc/main.c
@@ -121,7 +121,6 @@
}
}
-extern void mmuinit0(void);
extern void (*i8237alloc)(void);
extern void bootscreeninit(void);
@@ -138,8 +137,6 @@
print("\nPlan 9\n");
trapinit0();
- mmuinit0();
-
kbdinit();
i8253init();
cpuidentify();
--- a/sys/src/9/pc/mmu.c
+++ b/sys/src/9/pc/mmu.c
@@ -67,12 +67,6 @@
#define vpd (vpt+VPTX(VPT))
void
-mmuinit0(void)
-{
- memmove(m->gdt, gdt, sizeof gdt);
-}
-
-void
mmuinit(void)
{
ulong x, *p;