aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2004-05-28 19:42:02 +0000
committerAlan Cox <alc@FreeBSD.org>2004-05-28 19:42:02 +0000
commit662d471da6519662fdeb4a521fbfb0d613fabed7 (patch)
treecedad51ade49efdb716ab1518cbee306152c42fa /sys
parent543e27a95b959defd2ad796525edb722ce2f9590 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/pmap.c8
-rw-r--r--sys/i386/i386/pmap.c8
2 files changed, 0 insertions, 16 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 9564472560e8b..fe64ae49f54cd 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -1892,14 +1892,6 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
if (mpte)
mpte->hold_count--;
- if ((prot & VM_PROT_WRITE) && (origpte & PG_V)) {
- if ((origpte & PG_RW) == 0) {
- pte_store(pte, origpte | PG_RW);
- pmap_invalidate_page(pmap, va);
- }
- return;
- }
-
/*
* We might be turning off write access to the page,
* so we go ahead and sense modify status.
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index e3fe15ad80665..375cfad4b1188 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -1961,14 +1961,6 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
if (mpte)
mpte->hold_count--;
- if ((prot & VM_PROT_WRITE) && (origpte & PG_V)) {
- if ((origpte & PG_RW) == 0) {
- pte_store(pte, origpte | PG_RW);
- pmap_invalidate_page(pmap, va);
- }
- return;
- }
-
/*
* We might be turning off write access to the page,
* so we go ahead and sense modify status.