Add pmap_mapbios and pmap_unmapbios. These will be needed to support acpi.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2015-04-29 15:00:43 +00:00
parent eee7269ff8
commit 85ffc58684
2 changed files with 14 additions and 0 deletions

View File

@ -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.
*/

View File

@ -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);