diff options
author | alc <alc@FreeBSD.org> | 2004-10-02 07:34:58 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-10-02 07:34:58 +0000 |
commit | 19377ec887db0bddf61b00fed90f57dfcb29ee6a (patch) | |
tree | 8905dc02947b5dc19270272492adab72721bd649 /sys/alpha | |
parent | de84da46734ad3ae0c223c2a85c755efc6046983 (diff) | |
download | FreeBSD-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/alpha')
-rw-r--r-- | sys/alpha/alpha/pmap.c | 7 |
1 files changed, 2 insertions, 5 deletions
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; |