* Make a temporary mapping for a physical address. * This is only intended to be used for panic dumps. */
| 1449 | * This is only intended to be used for panic dumps. |
| 1450 | */ |
| 1451 | void * |
| 1452 | pmap_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 | * |
no test coverage detected