Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/mips/pmap.c
Show First 20 Lines • Show All 3,258 Lines • ▼ Show 20 Lines | #ifndef __mips_n64 | ||||
/* If the address is within KSEG1 then there is nothing to do */ | /* If the address is within KSEG1 then there is nothing to do */ | ||||
if (va >= MIPS_KSEG1_START && va <= MIPS_KSEG1_END) | if (va >= MIPS_KSEG1_START && va <= MIPS_KSEG1_END) | ||||
return; | return; | ||||
base = trunc_page(va); | base = trunc_page(va); | ||||
offset = va & PAGE_MASK; | offset = va & PAGE_MASK; | ||||
size = roundup(size + offset, PAGE_SIZE); | size = roundup(size + offset, PAGE_SIZE); | ||||
pmap_qremove(base, atop(size)); | |||||
kva_free(base, size); | kva_free(base, size); | ||||
#endif | #endif | ||||
} | } | ||||
/* | /* | ||||
* Perform the pmap work for mincore(2). If the page is not both referenced and | * Perform the pmap work for mincore(2). If the page is not both referenced and | ||||
* modified by this pmap, returns its physical address so that the caller can | * modified by this pmap, returns its physical address so that the caller can | ||||
* find other mappings. | * find other mappings. | ||||
▲ Show 20 Lines • Show All 493 Lines • Show Last 20 Lines |