Map memory as read-only in pmap_enter_quick_locked as is done in other
pmap implementations. Obtained from: ABT Systems Ltd MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
f17394c340
commit
56d9fe8567
@ -2794,7 +2794,7 @@ pmap_enter_quick_locked(pmap_t pmap, vm_offset_t va, vm_page_t m,
|
||||
pmap_resident_count_inc(pmap, 1);
|
||||
|
||||
pa = VM_PAGE_TO_PHYS(m) | ATTR_DEFAULT | ATTR_IDX(m->md.pv_memattr) |
|
||||
ATTR_AP(ATTR_AP_RW) | L3_PAGE;
|
||||
ATTR_AP(ATTR_AP_RO) | L3_PAGE;
|
||||
|
||||
/*
|
||||
* Now validate mapping with RO protection
|
||||
|
Loading…
x
Reference in New Issue
Block a user