In pmap_copy(), since we have the page table page's physical address

in hand, use PHYS_TO_VM_PAGE() rather than vm_page_lookup().
This commit is contained in:
Alan Cox 2003-08-17 04:48:21 +00:00
parent 710338e94f
commit 365b27ea29
2 changed files with 4 additions and 6 deletions

View File

@ -2302,9 +2302,8 @@ pmap_copy(pmap_t dst_pmap, pmap_t src_pmap, vm_offset_t dst_addr, vm_size_t len,
continue;
}
srcmpte = vm_page_lookup(src_pmap->pm_pteobj, ptepindex);
if ((srcmpte == NULL) ||
(srcmpte->hold_count == 0) || (srcmpte->flags & PG_BUSY))
srcmpte = PHYS_TO_VM_PAGE(srcptepaddr);
if (srcmpte->hold_count == 0 || (srcmpte->flags & PG_BUSY))
continue;
if (pdnxt > end_addr)

View File

@ -2422,9 +2422,8 @@ pmap_copy(pmap_t dst_pmap, pmap_t src_pmap, vm_offset_t dst_addr, vm_size_t len,
continue;
}
srcmpte = vm_page_lookup(src_pmap->pm_pteobj, ptepindex);
if ((srcmpte == NULL) ||
(srcmpte->hold_count == 0) || (srcmpte->flags & PG_BUSY))
srcmpte = PHYS_TO_VM_PAGE(srcptepaddr);
if (srcmpte->hold_count == 0 || (srcmpte->flags & PG_BUSY))
continue;
if (pdnxt > end_addr)