diff options
| author | christos <christos@NetBSD.org> | 2002-03-16 20:43:48 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2002-03-16 20:43:48 +0000 |
| commit | 381e6a7764443fd1b8b3051a8afc2a712c7ea1f3 (patch) | |
| tree | 88f5b920f1f822bb352962fd8ddf27aa907adf05 /sys/compat/linux/common/linux_exec.c | |
| parent | 089222c4d1fed051c383835bbfcef5ff32f3f898 (diff) | |
make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc *
in, instead of using curproc). While there add an optional size argument to
stackgap_init.
Diffstat (limited to 'sys/compat/linux/common/linux_exec.c')
| -rw-r--r-- | sys/compat/linux/common/linux_exec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_exec.c b/sys/compat/linux/common/linux_exec.c index 59f484a0a1d..4820e776084 100644 --- a/sys/compat/linux/common/linux_exec.c +++ b/sys/compat/linux/common/linux_exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_exec.c,v 1.56 2002/01/17 21:19:22 bjh21 Exp $ */ +/* $NetBSD: linux_exec.c,v 1.57 2002/03/16 20:43:53 christos Exp $ */ /*- * Copyright (c) 1994, 1995, 1998, 2000 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.56 2002/01/17 21:19:22 bjh21 Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.57 2002/03/16 20:43:53 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -99,7 +99,7 @@ linux_sys_execve(p, v, retval) struct sys_execve_args ap; caddr_t sg; - sg = stackgap_init(p->p_emul); + sg = stackgap_init(p, 0); CHECK_ALT_EXIST(p, &sg, SCARG(uap, path)); SCARG(&ap, path) = SCARG(uap, path); |
