summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/amd64/amd64/pmap.c4
-rw-r--r--sys/arch/i386/i386/pmap.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c
index 6683435943a..19249b74f24 100644
--- a/sys/arch/amd64/amd64/pmap.c
+++ b/sys/arch/amd64/amd64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.33 2008/12/04 15:48:19 weingart Exp $ */
+/* $OpenBSD: pmap.c,v 1.34 2008/12/18 13:43:24 kurt Exp $ */
/* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */
/*
@@ -1938,7 +1938,7 @@ pmap_unwire(struct pmap *pmap, vaddr_t va)
panic("pmap_unwire: invalid (unmapped) va 0x%lx", va);
#endif
if ((ptes[pl1_i(va)] & PG_W) != 0) {
- ptes[pl1_i(va)] &= ~PG_W;
+ pmap_pte_clearbits(&ptes[pl1_i(va)], PG_W);
pmap->pm_stats.wired_count--;
}
#ifdef DIAGNOSTIC
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c
index 6b326e92db3..bedde99979a 100644
--- a/sys/arch/i386/i386/pmap.c
+++ b/sys/arch/i386/i386/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.132 2008/11/24 16:32:45 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.133 2008/12/18 13:43:24 kurt Exp $ */
/* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */
/*
@@ -2352,7 +2352,7 @@ pmap_unwire(struct pmap *pmap, vaddr_t va)
panic("pmap_unwire: invalid (unmapped) va 0x%lx", va);
#endif
if ((ptes[atop(va)] & PG_W) != 0) {
- ptes[atop(va)] &= ~PG_W;
+ i386_atomic_clearbits_l(&ptes[atop(va)], PG_W);
pmap->pm_stats.wired_count--;
}
#ifdef DIAGNOSTIC