Avoid "boot" in xv6

This commit is contained in:
Frans Kaashoek 2011-08-15 20:11:13 -04:00
parent 9449646853
commit a4b213cf49
11 changed files with 43 additions and 51 deletions

4
vm.c
View file

@ -12,7 +12,7 @@ pde_t *kpgdir; // for use in scheduler()
struct segdesc gdt[NSEGS];
// Set up CPU's kernel segment descriptors.
// Run once at boot time on each CPU.
// Run once on entry on each CPU.
void
seginit(void)
{
@ -146,7 +146,7 @@ setupkvm(char* (*alloc)(void))
void
kvmalloc(void)
{
kpgdir = setupkvm(boot_alloc);
kpgdir = setupkvm(enter_alloc);
switchkvm();
}