Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/booke/pmap.c
Show First 20 Lines • Show All 2,316 Lines • ▼ Show 20 Lines | #ifdef SUPPORTS_SHRINKING_TLB1 | ||||
/* | /* | ||||
* Unmap only if this is inside kernel virtual space. | * Unmap only if this is inside kernel virtual space. | ||||
*/ | */ | ||||
if ((va >= VM_MIN_KERNEL_ADDRESS) && (va <= VM_MAX_KERNEL_ADDRESS)) { | if ((va >= VM_MIN_KERNEL_ADDRESS) && (va <= VM_MAX_KERNEL_ADDRESS)) { | ||||
base = trunc_page(va); | base = trunc_page(va); | ||||
offset = va & PAGE_MASK; | offset = va & PAGE_MASK; | ||||
size = roundup(offset + size, PAGE_SIZE); | size = roundup(offset + size, PAGE_SIZE); | ||||
mmu_booke_qremove(base, atop(size)); | |||||
kva_free(base, size); | kva_free(base, size); | ||||
} | } | ||||
#endif | #endif | ||||
} | } | ||||
/* | /* | ||||
* mmu_booke_object_init_pt preloads the ptes for a given object into the | * mmu_booke_object_init_pt preloads the ptes for a given object into the | ||||
* specified pmap. This eliminates the blast of soft faults on process startup | * specified pmap. This eliminates the blast of soft faults on process startup | ||||
▲ Show 20 Lines • Show All 786 Lines • Show Last 20 Lines |