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:
parent
ad51776c88
commit
ead42fc389
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user