From 19377ec887db0bddf61b00fed90f57dfcb29ee6a Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 2 Oct 2004 07:34:58 +0000 Subject: Eliminate unnecessary uses of PHYS_TO_VM_PAGE() from pmap_enter(). These uses predate the change in the pmap_enter() interface that replaced the page's physical address by the address of its vm_page structure. The PHYS_TO_VM_PAGE() was being used to compute the address of the same vm_page structure that was being passed in. --- sys/alpha/alpha/pmap.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/alpha') diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c index 2f449e3..bb6a723 100644 --- a/sys/alpha/alpha/pmap.c +++ b/sys/alpha/alpha/pmap.c @@ -1717,11 +1717,8 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot, */ if (origpte & PG_MANAGED) { if ((origpte & PG_FOW) != PG_FOW - && pmap_track_modified(va)) { - vm_page_t om; - om = PHYS_TO_VM_PAGE(opa); - vm_page_dirty(om); - } + && pmap_track_modified(va)) + vm_page_dirty(m); } managed = origpte & PG_MANAGED; -- cgit v1.1