summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_map.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-03-15 10:30:58 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-03-15 10:30:58 +0000
commit2d7aca07e2b6ee9d1e3892ccf1028ae7c7fb793c (patch)
tree8f56029966b4ca0a6175aa2b398f07452a689ae4 /sys/uvm/uvm_map.c
parent99a148b7d2e75a4633f6eaf4ff754eb2ba0d22fa (diff)
Let uvm_map_extract set the lower bound on the address range itself
instead of depending on the callers to do that. (which they don't)
Diffstat (limited to 'sys/uvm/uvm_map.c')
-rw-r--r--sys/uvm/uvm_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index f5e6bbc8c4b..36548caa3d0 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.9 2001/03/09 14:20:51 art Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.10 2001/03/15 10:30:57 art Exp $ */
/* $NetBSD: uvm_map.c,v 1.56 1999/06/16 19:34:24 thorpej Exp $ */
/*
@@ -1369,7 +1369,7 @@ uvm_map_extract(srcmap, start, len, dstmap, dstaddrp, flags)
* step 1: reserve space in the target map for the extracted area
*/
- dstaddr = *dstaddrp;
+ dstaddr = vm_map_min(dstmap);
if (uvm_map_reserve(dstmap, len, start, &dstaddr) == FALSE)
return(ENOMEM);
*dstaddrp = dstaddr; /* pass address back to caller */