Use the direct mapping of IdlePTD setup in locore for proc0's page directory,

instead of allocating another page of kva and mapping it in again.  This was
likely an oversight in revision 1.174 (cut and paste from pmap_pinit).

Discussed with:	peter, tegge
Sponsored by:	DARPA, Network Associates Laboratories
This commit is contained in:
jake 2003-02-24 00:39:50 +00:00
parent 5bd49ab382
commit 5c99d4e544
2 changed files with 4 additions and 16 deletions

View File

@ -1255,14 +1255,8 @@ void
pmap_pinit0(pmap)
struct pmap *pmap;
{
pmap->pm_pdir =
(pd_entry_t *)kmem_alloc_pageable(kernel_map, PAGE_SIZE);
pmap_kenter((vm_offset_t)pmap->pm_pdir, (vm_offset_t)IdlePTD);
#ifndef I386_CPU
invlpg((vm_offset_t)pmap->pm_pdir);
#else
invltlb();
#endif
pmap->pm_pdir = (pd_entry_t *)(KERNBASE + (vm_offset_t)IdlePTD);
pmap->pm_active = 0;
TAILQ_INIT(&pmap->pm_pvlist);
bzero(&pmap->pm_stats, sizeof pmap->pm_stats);

View File

@ -1255,14 +1255,8 @@ void
pmap_pinit0(pmap)
struct pmap *pmap;
{
pmap->pm_pdir =
(pd_entry_t *)kmem_alloc_pageable(kernel_map, PAGE_SIZE);
pmap_kenter((vm_offset_t)pmap->pm_pdir, (vm_offset_t)IdlePTD);
#ifndef I386_CPU
invlpg((vm_offset_t)pmap->pm_pdir);
#else
invltlb();
#endif
pmap->pm_pdir = (pd_entry_t *)(KERNBASE + (vm_offset_t)IdlePTD);
pmap->pm_active = 0;
TAILQ_INIT(&pmap->pm_pvlist);
bzero(&pmap->pm_stats, sizeof pmap->pm_stats);