Add enough of pmap_page_set_memattr to run gstat. It still needs to split

the DMAP 1G pages so we set the attributes only on the specified page.

Obtained from:	ABT Systems Ltd
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2015-07-30 16:17:44 +00:00
parent 0b6476ec5b
commit 8df0053b7a

View File

@ -2971,7 +2971,17 @@ void
pmap_page_set_memattr(vm_page_t m, vm_memattr_t ma)
{
panic("ARM64TODO: pmap_page_set_memattr");
m->md.pv_memattr = ma;
/*
* ARM64TODO: Implement the below (from the amd64 pmap)
* If "m" is a normal page, update its direct mapping. This update
* can be relied upon to perform any cache operations that are
* required for data coherence.
*/
if ((m->flags & PG_FICTITIOUS) == 0 &&
PHYS_IN_DMAP(VM_PAGE_TO_PHYS(m)))
panic("ARM64TODO: pmap_page_set_memattr");
}
/*