summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 13fed7c..9ebd7c8 100644
--- a/main.c
+++ b/main.c
@@ -107,10 +107,10 @@ startothers(void)
// Use PTE_PS in page directory entry to enable 4Mbyte pages.
__attribute__((__aligned__(PGSIZE)))
pde_t enterpgdir[NPDENTRIES] = {
- // Map VA's [0, 4MB) to PA's [0, 4MB)
- [0] = (0) + PTE_P + PTE_W + PTE_PS,
- // Map VA's [KERNBASE, KERNBASE+4MB) to PA's [0, 4MB)
- [KERNBASE>>PDXSHIFT] = (0) + PTE_P + PTE_W + PTE_PS,
+ // Map VA's [0, 4MB) to PA's [0, 4MB)
+ [0] = (0) + PTE_P + PTE_W + PTE_PS,
+ // Map VA's [KERNBASE, KERNBASE+4MB) to PA's [0, 4MB)
+ [KERNBASE>>PDXSHIFT] = (0) + PTE_P + PTE_W + PTE_PS,
};
//PAGEBREAK!