Don't set PG_WRITEABLE in pmap_enter() unless the page is managed.

This commit is contained in:
alc 2010-05-29 18:26:44 +00:00
parent 012f4aa201
commit 841f6f3ff0

View File

@ -1595,7 +1595,7 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_prot_t access, vm_page_t m,
if (icache_inval)
ia64_sync_icache(va, PAGE_SIZE);
if ((prot & VM_PROT_WRITE) != 0)
if ((prot & VM_PROT_WRITE) != 0 && managed)
vm_page_flag_set(m, PG_WRITEABLE);
vm_page_unlock_queues();
pmap_switch(oldpmap);