* pmap_object_init_pt preloads the ptes for a given object * into the specified pmap. This eliminates the blast of soft * faults on process startup and immediately after an mmap. */
| 2519 | * faults on process startup and immediately after an mmap. |
| 2520 | */ |
| 2521 | void |
| 2522 | pmap_object_init_pt(pmap_t pmap, vm_offset_t addr, |
| 2523 | vm_object_t object, vm_pindex_t pindex, vm_size_t size) |
| 2524 | { |
| 2525 | VM_OBJECT_ASSERT_WLOCKED(object); |
| 2526 | KASSERT(object->type == OBJT_DEVICE || object->type == OBJT_SG, |
| 2527 | ("pmap_object_init_pt: non-device object")); |
| 2528 | } |
| 2529 | |
| 2530 | /* |
| 2531 | * Clear the wired attribute from the mappings for the specified range of |