summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/pmap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c
index 25146af..3c239f5 100644
--- a/sys/arm/arm/pmap.c
+++ b/sys/arm/arm/pmap.c
@@ -4469,11 +4469,8 @@ void
pmap_remove_write(vm_page_t m)
{
- if (m->md.pvh_attrs & PVF_WRITE)
+ if (m->flags & PG_WRITEABLE)
pmap_clearbit(m, PVF_WRITE);
- else
- KASSERT((m->flags & PG_WRITEABLE) == 0,
- ("pmap_clear_write: page %p has PG_WRITEABLE set", m));
}
OpenPOWER on IntegriCloud