diff options
author | cognet <cognet@FreeBSD.org> | 2004-07-13 22:40:59 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-07-13 22:40:59 +0000 |
commit | 512283ce25f97070fe9a81cb0695d87c31622254 (patch) | |
tree | c46fb34a89bdca65a079b9163af171576e2a4e6b /sys/arm | |
parent | 4a50f485c4356df4ca2c7b2684af05c53c8c7e5c (diff) | |
download | FreeBSD-src-512283ce25f97070fe9a81cb0695d87c31622254.zip FreeBSD-src-512283ce25f97070fe9a81cb0695d87c31622254.tar.gz |
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
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/pmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 77d5279..0751e2b 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); |