From 512283ce25f97070fe9a81cb0695d87c31622254 Mon Sep 17 00:00:00 2001 From: cognet Date: Tue, 13 Jul 2004 22:40:59 +0000 Subject: [PATCH] In pmap_remove_pages(), when the pv_list is entry, we want to clean the PG_WRITEABLE flag, not the PG_REFERENCED flag. Submitted by: alc --- sys/arm/arm/pmap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 77d5279b1e33..0751e2ba1dd4 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -2666,9 +2666,8 @@ pmap_remove_pages(pmap_t pmap, vm_offset_t sva, vm_offset_t eva) m->md.pv_list_count--; TAILQ_REMOVE(&m->md.pv_list, pv, pv_list); - if (TAILQ_FIRST(&m->md.pv_list) == NULL) { - vm_page_flag_clear(m, PG_REFERENCED); - } + if (TAILQ_FIRST(&m->md.pv_list) == NULL) + vm_page_flag_clear(m, PG_WRITEABLE); pmap_free_l2_bucket(pv->pv_pmap, l2b, 1); pmap_unuse_pt(pv->pv_pmap, pv->pv_va, pv->pv_ptem);