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

Function pmap_kenter_temporary

freebsd/arm/arm/pmap-v6.c:1451–1462  ·  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

1449 * This is only intended to be used for panic dumps.
1450 */
1451void *
1452pmap_kenter_temporary(vm_paddr_t pa, int i)
1453{
1454 vm_offset_t va;
1455
1456 /* QQQ: 'i' should be less or equal to MAXDUMPPGS. */
1457
1458 va = (vm_offset_t)crashdumpmap + (i * PAGE_SIZE);
1459 pmap_kenter(va, pa);
1460 tlb_flush_local(va);
1461 return ((void *)crashdumpmap);
1462}
1463
1464/*************************************
1465 *

Callers 2

blk_writeFunction · 0.70
dumpsys_map_chunkFunction · 0.70

Calls 2

tlb_flush_localFunction · 0.85
pmap_kenterFunction · 0.70

Tested by

no test coverage detected