1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119006
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)