diff options
author | alc <alc@FreeBSD.org> | 2009-05-23 22:05:14 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-05-23 22:05:14 +0000 |
commit | bb19fda7a9f08fee226ea1a354cd0b8a97b9389e (patch) | |
tree | ee636a84d74b73d73d92291db5c33522652cb603 /sys/mips | |
parent | 48f748dc297cbf46f02ec8b61d47436d66d0d8b9 (diff) | |
download | FreeBSD-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.c | 1 |
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; } |