summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2011-08-30 20:50:19 -0400
committerRobert Morris <[email protected]>2011-08-30 20:50:19 -0400
commit5e083578278e340e0661f2dede68676432269f49 (patch)
tree5783451019b97c53c1b63cb03d313ca1c867acc7 /main.c
parent1ddfbbb194e3aa668b33469eb547132a7a7f940a (diff)
downloadxv6-labs-5e083578278e340e0661f2dede68676432269f49.tar.gz
xv6-labs-5e083578278e340e0661f2dede68676432269f49.tar.bz2
xv6-labs-5e083578278e340e0661f2dede68676432269f49.zip
enterpgdir -> entrypgdir
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index 9ebd7c8..23e0316 100644
--- a/main.c
+++ b/main.c
@@ -60,7 +60,7 @@ mpmain(void)
scheduler(); // start running processes
}
-pde_t enterpgdir[]; // For entry.S
+pde_t entrypgdir[]; // For entry.S
// Start the non-boot (AP) processors.
static void
@@ -83,15 +83,15 @@ startothers(void)
// Tell entryother.S what stack to use, the address of mpenter and pgdir;
// We cannot use kpgdir yet, because the AP processor is running in low
- // memory, so we use enterpgdir for the APs too. kalloc can return addresses
+ // memory, so we use entrypgdir for the APs too. kalloc can return addresses
// above 4Mbyte (the machine may have much more physical memory than 4Mbyte), which
- // aren't mapped by enterpgdir, so we must allocate a stack using enter_alloc();
+ // aren't mapped by entrypgdir, so we must allocate a stack using enter_alloc();
// This introduces the constraint that xv6 cannot use kalloc until after these
// last enter_alloc invocations.
stack = enter_alloc();
*(void**)(code-4) = stack + KSTACKSIZE;
*(void**)(code-8) = mpenter;
- *(int**)(code-12) = (void *) v2p(enterpgdir);
+ *(int**)(code-12) = (void *) v2p(entrypgdir);
lapicstartap(c->id, v2p(code));
@@ -106,7 +106,7 @@ startothers(void)
// hence the "__aligned__" attribute.
// Use PTE_PS in page directory entry to enable 4Mbyte pages.
__attribute__((__aligned__(PGSIZE)))
-pde_t enterpgdir[NPDENTRIES] = {
+pde_t entrypgdir[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)