Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/aim/mmu_radix.c
Show First 20 Lines • Show All 5,840 Lines • ▼ Show 20 Lines | mmu_radix_unmapdev(vm_offset_t va, vm_size_t size) | ||||
/* If we gave a direct map region in pmap_mapdev, do nothing */ | /* If we gave a direct map region in pmap_mapdev, do nothing */ | ||||
if (va >= DMAP_MIN_ADDRESS && va < DMAP_MAX_ADDRESS) | if (va >= DMAP_MIN_ADDRESS && va < DMAP_MAX_ADDRESS) | ||||
return; | return; | ||||
offset = va & PAGE_MASK; | offset = va & PAGE_MASK; | ||||
size = round_page(offset + size); | size = round_page(offset + size); | ||||
va = trunc_page(va); | va = trunc_page(va); | ||||
if (pmap_initialized) | if (pmap_initialized) { | ||||
mmu_radix_qremove(va, atop(size)); | |||||
kva_free(va, size); | kva_free(va, size); | ||||
} | |||||
} | } | ||||
static __inline void | static __inline void | ||||
pmap_pte_attr(pt_entry_t *pte, uint64_t cache_bits, uint64_t mask) | pmap_pte_attr(pt_entry_t *pte, uint64_t cache_bits, uint64_t mask) | ||||
{ | { | ||||
uint64_t opte, npte; | uint64_t opte, npte; | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 547 Lines • Show Last 20 Lines |