Lines Matching refs:old_entry
189 vm_map_entry_t old_entry,
7443 vm_map_entry_t old_entry,
7459 object = old_entry->object.vm_object;
7460 if (old_entry->is_sub_map) {
7461 assert(old_entry->wired_count == 0);
7463 if(old_entry->use_pmap) {
7467 (old_entry->object.sub_map)->pmap,
7468 (addr64_t)old_entry->vme_start,
7469 (addr64_t)old_entry->vme_start,
7470 (uint64_t)(old_entry->vme_end - old_entry->vme_start));
7476 object = vm_object_allocate((vm_map_size_t)(old_entry->vme_end -
7477 old_entry->vme_start));
7478 old_entry->offset = 0;
7479 old_entry->object.vm_object = object;
7480 assert(!old_entry->needs_copy);
7490 assert(! old_entry->needs_copy);
7492 else if (old_entry->needs_copy || /* case 1 */
7495 !old_entry->is_shared &&
7497 (vm_map_size_t)(old_entry->vme_end -
7498 old_entry->vme_start)))) {
7577 vm_object_shadow(&old_entry->object.vm_object,
7578 &old_entry->offset,
7579 (vm_map_size_t) (old_entry->vme_end -
7580 old_entry->vme_start));
7588 if (!old_entry->needs_copy &&
7589 (old_entry->protection & VM_PROT_WRITE)) {
7592 prot = old_entry->protection & ~VM_PROT_WRITE;
7594 if (override_nx(old_map, old_entry->alias) && prot)
7599 old_entry->object.vm_object,
7600 old_entry->offset,
7601 (old_entry->vme_end -
7602 old_entry->vme_start),
7604 old_entry->vme_start,
7608 old_entry->vme_start,
7609 old_entry->vme_end,
7614 old_entry->needs_copy = FALSE;
7615 object = old_entry->object.vm_object;
7627 if(old_entry->is_sub_map) {
7628 vm_map_lock(old_entry->object.sub_map);
7629 vm_map_reference(old_entry->object.sub_map);
7630 vm_map_unlock(old_entry->object.sub_map);
7646 vm_map_entry_copy(new_entry, old_entry);
7647 old_entry->is_shared = TRUE;
7662 if (old_entry->is_sub_map) {
7666 old_entry->vme_end - old_entry->vme_start,
7667 old_entry->vme_start);
7677 vm_map_entry_t old_entry = *old_entry_p;
7678 vm_map_size_t entry_size = old_entry->vme_end - old_entry->vme_start;
7679 vm_map_offset_t start = old_entry->vme_start;
7761 vm_map_entry_t old_entry;
7785 old_entry = vm_map_first_entry(old_map);
7786 old_entry != vm_map_to_entry(old_map);
7789 entry_size = old_entry->vme_end - old_entry->vme_start;
7791 switch (old_entry->inheritance) {
7796 vm_map_fork_share(old_map, old_entry, new_map);
7808 if(old_entry->is_sub_map)
7810 if ((old_entry->wired_count != 0) ||
7811 ((old_entry->object.vm_object != NULL) &&
7812 (old_entry->object.vm_object->true_share))) {
7817 vm_map_entry_copy(new_entry, old_entry);
7823 old_entry->offset,
7824 (old_entry->vme_end -
7825 old_entry->vme_start),
7836 if (src_needs_copy && !old_entry->needs_copy) {
7839 prot = old_entry->protection & ~VM_PROT_WRITE;
7841 if (override_nx(old_map, old_entry->alias) && prot)
7845 old_entry->object.vm_object,
7846 old_entry->offset,
7847 (old_entry->vme_end -
7848 old_entry->vme_start),
7849 ((old_entry->is_shared
7853 old_entry->vme_start,
7856 old_entry->needs_copy = TRUE;
7871 if (vm_map_fork_copy(old_map, &old_entry, new_map)) {
7876 old_entry = old_entry->vme_next;