svn commit: r304688 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Tue Aug 23 16:20:57 UTC 2016
Author: andrew
Date: Tue Aug 23 16:20:56 2016
New Revision: 304688
URL: https://svnweb.freebsd.org/changeset/base/304688
Log:
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
Modified:
head/sys/arm64/arm64/pmap.c
Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c Tue Aug 23 16:12:25 2016 (r304687)
+++ head/sys/arm64/arm64/pmap.c Tue Aug 23 16:20:56 2016 (r304688)
@@ -2794,7 +2794,7 @@ pmap_enter_quick_locked(pmap_t pmap, vm_
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
More information about the svn-src-head
mailing list