summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAustin Clements <[email protected]>2011-08-29 16:12:01 -0400
committerAustin Clements <[email protected]>2011-08-29 16:12:01 -0400
commita7061b4f9717e85ebedf87244921d37babc5d8f4 (patch)
treed0da825082a1c7f179f2e8b04f1c9b9a6ccbe9e0 /main.c
parent16f205b5c9de7b49dcff44f2f14377799624083a (diff)
downloadxv6-labs-a7061b4f9717e85ebedf87244921d37babc5d8f4.tar.gz
xv6-labs-a7061b4f9717e85ebedf87244921d37babc5d8f4.tar.bz2
xv6-labs-a7061b4f9717e85ebedf87244921d37babc5d8f4.zip
Style nits; indentation and tabs
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!