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

Function pmap_kenter_temporary

freebsd/amd64/amd64/pmap.c:7356–7365  ·  view source on GitHub ↗

* Make a temporary mapping for a physical address. This is only intended * to be used for panic dumps. */

Source from the content-addressed store, hash-verified

7354 * to be used for panic dumps.
7355 */
7356void *
7357pmap_kenter_temporary(vm_paddr_t pa, int i)
7358{
7359 vm_offset_t va;
7360
7361 va = (vm_offset_t)crashdumpmap + (i * PAGE_SIZE);
7362 pmap_kenter(va, pa);
7363 invlpg(va);
7364 return ((void *)crashdumpmap);
7365}
7366
7367/*
7368 * This code maps large physical mmap regions into the

Callers 1

blk_writeFunction · 0.70

Calls 2

pmap_kenterFunction · 0.70
invlpgFunction · 0.50

Tested by

no test coverage detected