Author: emaste Date: Fri Aug 16 18:21:31 2019 New Revision: 351131 URL: https://svnweb.freebsd.org/changeset/base/351131
Log: aarch64: make pmap_change_attr public like on other platforms Submitted by: Greg V <greg@unrelenting.technology> Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D20787 Modified: head/sys/arm64/arm64/pmap.c head/sys/arm64/include/pmap.h Modified: head/sys/arm64/arm64/pmap.c ============================================================================== --- head/sys/arm64/arm64/pmap.c Fri Aug 16 17:10:38 2019 (r351130) +++ head/sys/arm64/arm64/pmap.c Fri Aug 16 18:21:31 2019 (r351131) @@ -295,7 +295,6 @@ static void pmap_pvh_free(struct md_page *pvh, pmap_t static pv_entry_t pmap_pvh_remove(struct md_page *pvh, pmap_t pmap, vm_offset_t va); -static int pmap_change_attr(vm_offset_t va, vm_size_t size, int mode); static int pmap_change_attr_locked(vm_offset_t va, vm_size_t size, int mode); static pt_entry_t *pmap_demote_l1(pmap_t pmap, pt_entry_t *l1, vm_offset_t va); static pt_entry_t *pmap_demote_l2_locked(pmap_t pmap, pt_entry_t *l2, @@ -5263,7 +5262,7 @@ pmap_page_set_memattr(vm_page_t m, vm_memattr_t ma) * latter case, the memory type may have been changed on some part of the * virtual address range or the direct map. */ -static int +int pmap_change_attr(vm_offset_t va, vm_size_t size, int mode) { int error; Modified: head/sys/arm64/include/pmap.h ============================================================================== --- head/sys/arm64/include/pmap.h Fri Aug 16 17:10:38 2019 (r351130) +++ head/sys/arm64/include/pmap.h Fri Aug 16 18:21:31 2019 (r351131) @@ -143,6 +143,7 @@ extern vm_offset_t virtual_end; ((((va) | (pa)) & L1_OFFSET) == 0 && (size) >= L1_SIZE) void pmap_bootstrap(vm_offset_t, vm_offset_t, vm_paddr_t, vm_size_t); +int pmap_change_attr(vm_offset_t va, vm_size_t size, int mode); void pmap_kenter(vm_offset_t sva, vm_size_t size, vm_paddr_t pa, int mode); void pmap_kenter_device(vm_offset_t, vm_size_t, vm_paddr_t); vm_paddr_t pmap_kextract(vm_offset_t va); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"