summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2016-08-10 11:35:28 -0400
committerRobert Morris <[email protected]>2016-08-10 11:35:28 -0400
commit3431cd492703e85909e7d5c0928ffc292ac518ec (patch)
tree37645b38b3eaa1727f2bf6cad575b906196b69e5 /main.c
parent0a69dc9b1745e863f0c16e50dba78804ba0925f7 (diff)
downloadxv6-labs-3431cd492703e85909e7d5c0928ffc292ac518ec.tar.gz
xv6-labs-3431cd492703e85909e7d5c0928ffc292ac518ec.tar.bz2
xv6-labs-3431cd492703e85909e7d5c0928ffc292ac518ec.zip
more comments in entryother.S
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.c b/main.c
index 40facc4..7329015 100644
--- a/main.c
+++ b/main.c
@@ -98,10 +98,11 @@ startothers(void)
}
}
-// 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.
-// Use PTE_PS in page directory entry to enable 4Mbyte pages.
+// The boot page table used in entry.S and entryother.S.
+// Page directories (and page tables) must start on page boundaries,
+// hence the __aligned__ attribute.
+// PTE_PS in a page directory entry enables 4Mbyte pages.
+
__attribute__((__aligned__(PGSIZE)))
pde_t entrypgdir[NPDENTRIES] = {
// Map VA's [0, 4MB) to PA's [0, 4MB)