summaryrefslogtreecommitdiffstats
path: root/sys/amd64
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/amd64
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/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 912bd52..a941673 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -1921,11 +1921,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 (origpte & PG_MANAGED) {
- if ((origpte & PG_M) && pmap_track_modified(va)) {
- vm_page_t om;
- om = PHYS_TO_VM_PAGE(opa);
- vm_page_dirty(om);
- }
+ if ((origpte & PG_M) && pmap_track_modified(va))
+ vm_page_dirty(m);
pa |= PG_MANAGED;
}
goto validate;
OpenPOWER on IntegriCloud