diff options
author | Robert Morris <[email protected]> | 2011-08-30 20:50:19 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2011-08-30 20:50:19 -0400 |
commit | 5e083578278e340e0661f2dede68676432269f49 (patch) | |
tree | 5783451019b97c53c1b63cb03d313ca1c867acc7 /main.c | |
parent | 1ddfbbb194e3aa668b33469eb547132a7a7f940a (diff) | |
download | xv6-labs-5e083578278e340e0661f2dede68676432269f49.tar.gz xv6-labs-5e083578278e340e0661f2dede68676432269f49.tar.bz2 xv6-labs-5e083578278e340e0661f2dede68676432269f49.zip |
enterpgdir -> entrypgdir
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |