1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

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 Burkholder 2003-02-24 00:39:50 +00:00
parent 84188b7cc1
commit 28c9e1aa5c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111385
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);