diff options
| -rw-r--r-- | sys/mips/mips/pmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c index 115825c9738d..2188c3695615 100644 --- a/sys/mips/mips/pmap.c +++ b/sys/mips/mips/pmap.c @@ -1849,6 +1849,8 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_prot_t fault_type, vm_page_t m, vm_pr pmap->pm_stats.wired_count++; validate: + if ((access & VM_PROT_WRITE) != 0) + m->md.pv_flags |= PV_TABLE_MOD | PV_TABLE_REF; rw = init_pte_prot(va, m, prot); #ifdef PMAP_DEBUG |
