Deleted Added
full compact
vm_map.c (24668) vm_map.c (24691)
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 47 unchanged lines hidden (view full) ---

56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
57 * School of Computer Science
58 * Carnegie Mellon University
59 * Pittsburgh PA 15213-3890
60 *
61 * any improvements or extensions that they make and grant Carnegie the
62 * rights to redistribute these changes.
63 *
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 47 unchanged lines hidden (view full) ---

56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
57 * School of Computer Science
58 * Carnegie Mellon University
59 * Pittsburgh PA 15213-3890
60 *
61 * any improvements or extensions that they make and grant Carnegie the
62 * rights to redistribute these changes.
63 *
64 * $Id: vm_map.c,v 1.73 1997/04/06 02:29:43 dyson Exp $
64 * $Id: vm_map.c,v 1.74 1997/04/06 03:04:31 dyson Exp $
65 */
66
67/*
68 * Virtual memory mapping module.
69 */
70
71#include <sys/param.h>
72#include <sys/systm.h>

--- 178 unchanged lines hidden (view full) ---

251 vm_map_lock(&vm->vm_map);
252 (void) vm_map_delete(&vm->vm_map, vm->vm_map.min_offset,
253 vm->vm_map.max_offset);
254 vm_map_unlock(&vm->vm_map);
255
256 while( vm->vm_map.ref_count != 1)
257 tsleep(&vm->vm_map.ref_count, PVM, "vmsfre", 0);
258 --vm->vm_map.ref_count;
65 */
66
67/*
68 * Virtual memory mapping module.
69 */
70
71#include <sys/param.h>
72#include <sys/systm.h>

--- 178 unchanged lines hidden (view full) ---

251 vm_map_lock(&vm->vm_map);
252 (void) vm_map_delete(&vm->vm_map, vm->vm_map.min_offset,
253 vm->vm_map.max_offset);
254 vm_map_unlock(&vm->vm_map);
255
256 while( vm->vm_map.ref_count != 1)
257 tsleep(&vm->vm_map.ref_count, PVM, "vmsfre", 0);
258 --vm->vm_map.ref_count;
259 vm_object_pmap_remove(vm->vm_upages_obj,
260 0, vm->vm_upages_obj->size);
261 vm_object_deallocate(vm->vm_upages_obj);
262 pmap_release(&vm->vm_pmap);
263 FREE(vm, M_VMMAP);
264 } else {
265 wakeup(&vm->vm_map.ref_count);
266 }
267}
268
269/*

--- 2305 unchanged lines hidden ---
259 pmap_release(&vm->vm_pmap);
260 FREE(vm, M_VMMAP);
261 } else {
262 wakeup(&vm->vm_map.ref_count);
263 }
264}
265
266/*

--- 2305 unchanged lines hidden ---