diff options
author | dg <dg@FreeBSD.org> | 1995-02-15 09:22:17 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-02-15 09:22:17 +0000 |
commit | a33bb795d3d152797cd9b931fe3090918e864e41 (patch) | |
tree | 3b7bb16c328b7b3113d39bd8acbef5178dc70c02 /sys | |
parent | 437b8b588a4ed49dd00ace2ff98e10efb66675b4 (diff) | |
download | FreeBSD-src-a33bb795d3d152797cd9b931fe3090918e864e41.zip FreeBSD-src-a33bb795d3d152797cd9b931fe3090918e864e41.tar.gz |
Don't bother calling pmap_create() when creating the temporary map.
The whole COW section of vm_mmap() should be rewritten; the current
implementation is highly convoluted.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_mmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 4b3027c..fe11e04d3 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -38,7 +38,7 @@ * from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$ * * @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94 - * $Id: vm_mmap.c,v 1.7 1994/10/09 01:52:11 phk Exp $ + * $Id: vm_mmap.c,v 1.8 1995/01/09 16:05:48 davidg Exp $ */ /* @@ -746,7 +746,7 @@ vm_mmap(map, addr, size, prot, maxprot, flags, handle, foff) vm_object_deallocate(object); goto out; } - tmap = vm_map_create(pmap_create(size), VM_MIN_ADDRESS, + tmap = vm_map_create(NULL, VM_MIN_ADDRESS, VM_MIN_ADDRESS + size, TRUE); off = VM_MIN_ADDRESS; rv = vm_allocate_with_pager(tmap, &off, size, |