Implement fake pmap_mapdev_attr() for ARMv6.

This function is referenced, but never called from DRM2 code. Also,
real behavior of pmap_mapdev_attr() in ARM world is unclear as we don't
have any additional attribute for a device memory type.

MFC after: 2 weeks
This commit is contained in:
Michal Meloun 2016-12-04 15:27:39 +00:00
parent 6861837c7a
commit bdbc1b764d
2 changed files with 6 additions and 1 deletions

View File

@ -166,7 +166,6 @@ extern ttb_entry_t pmap_kern_ttb; /* TTB for kernel pmap */
void pmap_bootstrap(vm_offset_t);
void pmap_kenter(vm_offset_t, vm_paddr_t);
void pmap_kremove(vm_offset_t);
void *pmap_mapdev_attr(vm_paddr_t, vm_size_t, int);
boolean_t pmap_page_is_mapped(vm_page_t);
void pmap_tlb_flush(pmap_t, vm_offset_t);

View File

@ -53,6 +53,12 @@ void pmap_page_set_memattr(vm_page_t, vm_memattr_t);
void *pmap_mapdev(vm_paddr_t, vm_size_t);
void pmap_unmapdev(vm_offset_t, vm_size_t);
static inline void *
pmap_mapdev_attr(vm_paddr_t addr, vm_size_t size, int attr)
{
panic("%s is not implemented yet!\n", __func__);
}
struct pcb;
void pmap_set_pcb_pagedir(pmap_t, struct pcb *);