diff options
| author | joerg <joerg@NetBSD.org> | 2007-07-17 17:42:07 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2007-07-17 17:42:07 +0000 |
| commit | e4fc1154a4fcf13e62664227f5e508b58eb2ffe6 (patch) | |
| tree | c2774c5b0dec9da3ca1f0d5b7e95bafaa22544d3 /sys/compat/linux/common/linux_misc.c | |
| parent | 8b1500977e4dfda9b44c626b3eefdfa808554a31 (diff) | |
Add native mremap system call based on the UVM implementation for
Linux compat. Add code to enforce alignment of the new location.
Special thanks to wizd for helping with the man page.
Diffstat (limited to 'sys/compat/linux/common/linux_misc.c')
| -rw-r--r-- | sys/compat/linux/common/linux_misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c index 56da0b4fb2c..e26a52f5621 100644 --- a/sys/compat/linux/common/linux_misc.c +++ b/sys/compat/linux/common/linux_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.c,v 1.182 2007/07/04 21:59:16 dsl Exp $ */ +/* $NetBSD: linux_misc.c,v 1.183 2007/07/17 17:42:08 joerg Exp $ */ /*- * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc. @@ -64,7 +64,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.182 2007/07/04 21:59:16 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.183 2007/07/17 17:42:08 joerg Exp $"); #if defined(_KERNEL_OPT) #include "opt_ptrace.h" @@ -553,7 +553,7 @@ linux_sys_mremap(l, v, retval) } #if 0 /* notyet */ newva = SCARG(uap, new_address); - uvmflags = UVM_MREMAP_FIXED; + uvmflags = MAP_FIXED; #else /* notyet */ error = EOPNOTSUPP; goto done; @@ -562,7 +562,7 @@ linux_sys_mremap(l, v, retval) uvmflags = 0; } else { newva = oldva; - uvmflags = UVM_MREMAP_FIXED; + uvmflags = MAP_FIXED; } p = l->l_proc; map = &p->p_vmspace->vm_map; |
