summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-10-02 07:34:58 +0000
committeralc <alc@FreeBSD.org>2004-10-02 07:34:58 +0000
commit19377ec887db0bddf61b00fed90f57dfcb29ee6a (patch)
tree8905dc02947b5dc19270272492adab72721bd649 /sys/ia64
parentde84da46734ad3ae0c223c2a85c755efc6046983 (diff)
downloadFreeBSD-src-19377ec887db0bddf61b00fed90f57dfcb29ee6a.zip
FreeBSD-src-19377ec887db0bddf61b00fed90f57dfcb29ee6a.tar.gz
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.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/pmap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c
index 8f62408..1eb2578 100644
--- a/sys/ia64/ia64/pmap.c
+++ b/sys/ia64/ia64/pmap.c
@@ -1550,11 +1550,8 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
* so we go ahead and sense modify status.
*/
if (managed && pmap_lpte_dirty(&origpte) &&
- 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);
goto validate;
}
OpenPOWER on IntegriCloud