Don't set PG_WRITEABLE in pmap_enter() unless the page is managed.
This commit is contained in:
parent
012f4aa201
commit
841f6f3ff0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user