diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-11-08 20:32:51 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-11-08 20:32:51 +0000 |
commit | 8e605f88e707dd018dac36bc130a3dda874834fb (patch) | |
tree | d57e5a01262b35a384d3fad23f22413aaa1af494 /sys/compat | |
parent | 15df185bb45a8915fad90af3ae0949221742225e (diff) |
UVM
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/osf1/osf1_mmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/compat/osf1/osf1_mmap.c b/sys/compat/osf1/osf1_mmap.c index 8db88e47986..3a641bda06a 100644 --- a/sys/compat/osf1/osf1_mmap.c +++ b/sys/compat/osf1/osf1_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1_mmap.c,v 1.1 2000/08/04 15:47:55 ericj Exp $ */ +/* $OpenBSD: osf1_mmap.c,v 1.2 2000/11/08 20:32:50 art Exp $ */ /* $NetBSD: osf1_mmap.c,v 1.5 2000/04/11 05:26:27 chs Exp $ */ /* @@ -37,7 +37,8 @@ #include <sys/mman.h> #include <sys/mount.h> #include <sys/syscallargs.h> -#include <vm/vm.h> /* XXX see mmap emulation */ +#include <vm/vm.h> +#include <uvm/uvm.h> #include <compat/osf1/osf1.h> #include <compat/osf1/osf1_syscallargs.h> @@ -183,7 +184,7 @@ osf1_sys_mmap(p, v, retval) /* if non-NULL address given, start looking there */ /* XXX - UVM */ - if (addr != 0 && vm_map_findspace(&p->p_vmspace->vm_map, + if (addr != 0 && uvm_map_findspace(&p->p_vmspace->vm_map, addr, size, &addr, NULL, 0, 0) != NULL) { fixed = 1; goto done; |