Use vtopde() instead of pmap_pde() in pmap_kextract(); vtopde() is smaller

and faster in cases, such as pmap_kextract(), where the pde is known to
exist.
This commit is contained in:
alc 2004-12-21 19:25:56 +00:00
parent 085de6ea5e
commit 6e5db3a043

View File

@ -858,7 +858,7 @@ pmap_kextract(vm_offset_t va)
if (va >= DMAP_MIN_ADDRESS && va < DMAP_MAX_ADDRESS) {
pa = DMAP_TO_PHYS(va);
} else {
pde = pmap_pde(kernel_pmap, va);
pde = vtopde(va);
if (*pde & PG_PS) {
pa = (*pde & ~(NBPDR - 1)) | (va & (NBPDR - 1));
} else {