summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2009-05-23 22:05:14 +0000
committeralc <alc@FreeBSD.org>2009-05-23 22:05:14 +0000
commitbb19fda7a9f08fee226ea1a354cd0b8a97b9389e (patch)
treeee636a84d74b73d73d92291db5c33522652cb603 /sys/mips
parent48f748dc297cbf46f02ec8b61d47436d66d0d8b9 (diff)
downloadFreeBSD-src-bb19fda7a9f08fee226ea1a354cd0b8a97b9389e.zip
FreeBSD-src-bb19fda7a9f08fee226ea1a354cd0b8a97b9389e.tar.gz
pmap_enter() *must* set PG_WRITEABLE on the given page if it creates a
mapping that permits write access. Otherwise, pmap_remove_write() will not remove write access from any of the page's mappings.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/pmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c
index 229e198..4d7037e 100644
--- a/sys/mips/mips/pmap.c
+++ b/sys/mips/mips/pmap.c
@@ -3121,6 +3121,7 @@ init_pte_prot(vm_offset_t va, vm_page_t m, vm_prot_t prot)
rw = PTE_RWPAGE;
else
rw = PTE_CWPAGE;
+ vm_page_flag_set(m, PG_WRITEABLE);
}
return rw;
}
OpenPOWER on IntegriCloud