summaryrefslogtreecommitdiff
path: root/sys/mips
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2009-05-23 18:33:22 +0000
committerAlan Cox <alc@FreeBSD.org>2009-05-23 18:33:22 +0000
commitb4b264f3e98d138dd4ceea5e4ae2f7c8dc4d9df6 (patch)
tree88bd10121820dd0ac5818cf29bb50a9098b9a50c /sys/mips
parent5662349ed5432d36a6977b502cd7b355c300bf5a (diff)
Notes
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/pmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c
index 2188c3695615..c3d6060a35ec 100644
--- a/sys/mips/mips/pmap.c
+++ b/sys/mips/mips/pmap.c
@@ -3116,7 +3116,8 @@ init_pte_prot(vm_offset_t va, vm_page_t m, vm_prot_t prot)
*/
rw = PTE_RWPAGE;
vm_page_dirty(m);
- } else if ((m->md.pv_flags & PV_TABLE_MOD) || m->dirty)
+ } else if ((m->md.pv_flags & PV_TABLE_MOD) ||
+ m->dirty == VM_PAGE_BITS_ALL)
rw = PTE_RWPAGE;
else
rw = PTE_CWPAGE;