diff options
author | Alan Cox <alc@FreeBSD.org> | 2009-05-23 22:05:14 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2009-05-23 22:05:14 +0000 |
commit | 5760d14d58fa292c1a50b82bef73425e0616207a (patch) | |
tree | ee636a84d74b73d73d92291db5c33522652cb603 /sys/mips | |
parent | 37f17770e03aae332c6d186042e31ce8f226a0b5 (diff) | |
download | src-5760d14d58fa292c1a50b82bef73425e0616207a.tar.gz src-5760d14d58fa292c1a50b82bef73425e0616207a.zip |
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.
Notes
Notes:
svn path=/head/; revision=192671
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/mips/pmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c index 229e19874d2f..4d7037e91ca8 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; } |