MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pmap_unmapdev

Function pmap_unmapdev

freebsd/mips/mips/pmap.c:3253–3269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3251}
3252
3253void
3254pmap_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

Callers 4

generic_bs_unmapFunction · 0.70
ioapic_createFunction · 0.50
bus_space_unmapFunction · 0.50
nexus_unmap_resourceFunction · 0.50

Calls 2

kva_freeFunction · 0.85
pmap_qremoveFunction · 0.70

Tested by

no test coverage detected