Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/pmap-v4.c
Show First 20 Lines • Show All 4,853 Lines • ▼ Show 20 Lines | pmap_page_set_memattr(vm_page_t m, vm_memattr_t ma) | ||||
* will need to walk the pv_list and make each of the existing mappings | * will need to walk the pv_list and make each of the existing mappings | ||||
* uncacheable, being careful to sync caches and PTEs (and maybe | * uncacheable, being careful to sync caches and PTEs (and maybe | ||||
* invalidate TLB?) for any current mapping it modifies. | * invalidate TLB?) for any current mapping it modifies. | ||||
*/ | */ | ||||
if (m->md.pv_kva != 0 || TAILQ_FIRST(&m->md.pv_list) != NULL) | if (m->md.pv_kva != 0 || TAILQ_FIRST(&m->md.pv_list) != NULL) | ||||
panic("Can't change memattr on page with existing mappings"); | panic("Can't change memattr on page with existing mappings"); | ||||
} | } | ||||
boolean_t | |||||
pmap_is_valid_memattr(pmap_t pmap __unused, vm_memattr_t mode) | |||||
{ | |||||
return (mode == VM_MEMATTR_DEFAULT || mode == VM_MEMATTR_UNCACHEABLE); | |||||
} |