commit d9936304f2aacd5a01c4b2b5f06d3e5fc1304791
parent f011fb2f6ffc686291ff7f61bca181080c79a5cf
Author: Brian Swetland <swetland@frotz.net>
Date: Fri, 3 Jan 2014 20:29:43 -0800
don't compile entry page table in main in 64bit mode
It's not used by entry64.S and it fails to compile due 32bit-ness.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/main.c b/kernel/main.c
@@ -100,6 +100,7 @@ startothers(void)
}
}
+#ifndef X64
// Boot page table used in entry.S and entryother.S.
// Page directories (and page tables), must start on a page boundary,
// hence the "__aligned__" attribute.
@@ -111,6 +112,7 @@ pde_t entrypgdir[NPDENTRIES] = {
// Map VA's [KERNBASE, KERNBASE+4MB) to PA's [0, 4MB)
[KERNBASE>>PDXSHIFT] = (0) | PTE_P | PTE_W | PTE_PS,
};
+#endif
//PAGEBREAK!
// Blank page.