| 3251 | } |
| 3252 | |
| 3253 | void |
| 3254 | pmap_unmapdev(vm_offset_t va, vm_size_t size) |
| 3255 | { |
| 3256 | #ifndef __mips_n64 |
| 3257 | vm_offset_t base, offset; |
| 3258 | |
| 3259 | /* If the address is within KSEG1 then there is nothing to do */ |
| 3260 | if (va >= MIPS_KSEG1_START && va <= MIPS_KSEG1_END) |
| 3261 | return; |
| 3262 | |
| 3263 | base = trunc_page(va); |
| 3264 | offset = va & PAGE_MASK; |
| 3265 | size = roundup(size + offset, PAGE_SIZE); |
| 3266 | pmap_qremove(base, atop(size)); |
| 3267 | kva_free(base, size); |
| 3268 | #endif |
| 3269 | } |
| 3270 | |
| 3271 | /* |
| 3272 | * Perform the pmap work for mincore(2). If the page is not both referenced and |
no test coverage detected