svn commit: r282221 - in head/sys/arm64: arm64 include
Andrew Turner
andrew at FreeBSD.org
Wed Apr 29 15:00:44 UTC 2015
Author: andrew
Date: Wed Apr 29 15:00:43 2015
New Revision: 282221
URL: https://svnweb.freebsd.org/changeset/base/282221
Log:
Add pmap_mapbios and pmap_unmapbios. These will be needed to support acpi.
Sponsored by: The FreeBSD Foundation
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 Wed Apr 29 14:17:40 2015 (r282220)
+++ head/sys/arm64/arm64/pmap.c Wed Apr 29 15:00:43 2015 (r282221)
@@ -2936,6 +2936,18 @@ pmap_clear_modify(vm_page_t m)
/* TODO: We lack support for tracking if a page is modified */
}
+void *
+pmap_mapbios(vm_paddr_t pa, vm_size_t size)
+{
+
+ return ((void *)PHYS_TO_DMAP(pa));
+}
+
+void
+pmap_unmapbios(vm_paddr_t pa, vm_size_t size)
+{
+}
+
/*
* Sets the memory attribute for the specified page.
*/
Modified: head/sys/arm64/include/pmap.h
==============================================================================
--- head/sys/arm64/include/pmap.h Wed Apr 29 14:17:40 2015 (r282220)
+++ head/sys/arm64/include/pmap.h Wed Apr 29 15:00:43 2015 (r282221)
@@ -142,7 +142,9 @@ void pmap_kremove(vm_offset_t);
void pmap_kremove_device(vm_offset_t, vm_size_t);
void *pmap_mapdev(vm_offset_t, vm_size_t);
+void *pmap_mapbios(vm_paddr_t, vm_size_t);
void pmap_unmapdev(vm_offset_t, vm_size_t);
+void pmap_unmapbios(vm_offset_t, vm_size_t);
boolean_t pmap_map_io_transient(vm_page_t *, vm_offset_t *, int, boolean_t);
void pmap_unmap_io_transient(vm_page_t *, vm_offset_t *, int, boolean_t);
More information about the svn-src-head
mailing list