Deleted Added
full compact
vm_map.c (109572) vm_map.c (109623)
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 * $FreeBSD: head/sys/vm/vm_map.c 109572 2003-01-20 17:46:48Z dillon $
64 * $FreeBSD: head/sys/vm/vm_map.c 109623 2003-01-21 08:56:16Z alfred $
65 */
66
67/*
68 * Virtual memory mapping module.
69 */
70
71#include <sys/param.h>
72#include <sys/systm.h>

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

250 */
251struct vmspace *
252vmspace_alloc(min, max)
253 vm_offset_t min, max;
254{
255 struct vmspace *vm;
256
257 GIANT_REQUIRED;
65 */
66
67/*
68 * Virtual memory mapping module.
69 */
70
71#include <sys/param.h>
72#include <sys/systm.h>

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

250 */
251struct vmspace *
252vmspace_alloc(min, max)
253 vm_offset_t min, max;
254{
255 struct vmspace *vm;
256
257 GIANT_REQUIRED;
258 vm = uma_zalloc(vmspace_zone, M_WAITOK);
258 vm = uma_zalloc(vmspace_zone, 0);
259 CTR1(KTR_VM, "vmspace_alloc: %p", vm);
260 _vm_map_init(&vm->vm_map, min, max);
261 pmap_pinit(vmspace_pmap(vm));
262 vm->vm_map.pmap = vmspace_pmap(vm); /* XXX */
263 vm->vm_refcnt = 1;
264 vm->vm_shm = NULL;
265 vm->vm_exitingcnt = 0;
266 return (vm);

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

508 * the given physical map structure, and having
509 * the given lower and upper address bounds.
510 */
511vm_map_t
512vm_map_create(pmap_t pmap, vm_offset_t min, vm_offset_t max)
513{
514 vm_map_t result;
515
259 CTR1(KTR_VM, "vmspace_alloc: %p", vm);
260 _vm_map_init(&vm->vm_map, min, max);
261 pmap_pinit(vmspace_pmap(vm));
262 vm->vm_map.pmap = vmspace_pmap(vm); /* XXX */
263 vm->vm_refcnt = 1;
264 vm->vm_shm = NULL;
265 vm->vm_exitingcnt = 0;
266 return (vm);

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

508 * the given physical map structure, and having
509 * the given lower and upper address bounds.
510 */
511vm_map_t
512vm_map_create(pmap_t pmap, vm_offset_t min, vm_offset_t max)
513{
514 vm_map_t result;
515
516 result = uma_zalloc(mapzone, M_WAITOK);
516 result = uma_zalloc(mapzone, 0);
517 CTR1(KTR_VM, "vm_map_create: %p", result);
518 _vm_map_init(result, min, max);
519 result->pmap = pmap;
520 return (result);
521}
522
523/*
524 * Initialize an existing vm_map structure

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

567static vm_map_entry_t
568vm_map_entry_create(vm_map_t map)
569{
570 vm_map_entry_t new_entry;
571
572 if (map->system_map)
573 new_entry = uma_zalloc(kmapentzone, M_NOWAIT);
574 else
517 CTR1(KTR_VM, "vm_map_create: %p", result);
518 _vm_map_init(result, min, max);
519 result->pmap = pmap;
520 return (result);
521}
522
523/*
524 * Initialize an existing vm_map structure

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

567static vm_map_entry_t
568vm_map_entry_create(vm_map_t map)
569{
570 vm_map_entry_t new_entry;
571
572 if (map->system_map)
573 new_entry = uma_zalloc(kmapentzone, M_NOWAIT);
574 else
575 new_entry = uma_zalloc(mapentzone, M_WAITOK);
575 new_entry = uma_zalloc(mapentzone, 0);
576 if (new_entry == NULL)
577 panic("vm_map_entry_create: kernel resources exhausted");
578 return (new_entry);
579}
580
581/*
582 * vm_map_entry_set_behavior:
583 *

--- 2652 unchanged lines hidden ---
576 if (new_entry == NULL)
577 panic("vm_map_entry_create: kernel resources exhausted");
578 return (new_entry);
579}
580
581/*
582 * vm_map_entry_set_behavior:
583 *

--- 2652 unchanged lines hidden ---