From ecf44c474e85fa691ee093eb4bb654f865a04fed Mon Sep 17 00:00:00 2001 From: cognet Date: Mon, 28 Aug 2006 21:43:34 +0000 Subject: [PATCH] Ooops m->md.pvh_attrs can't be used to know if the page is writeable, because it only remembers if the page is modified or referenced. Bad review from: cognet --- sys/arm/arm/pmap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 25146afd0469..3c239f5c3077 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)); }