diff options
author | peter <peter@FreeBSD.org> | 1996-03-10 22:23:51 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-03-10 22:23:51 +0000 |
commit | 49aed043c3266b2e37f1471676abad2c49d7fac5 (patch) | |
tree | aadecb0a4950bbadf2dcd595594ccf25efdc3f8c /sys/compat | |
parent | 93e818aea7fc2239b294bfb0396d52416dd5f1c6 (diff) | |
download | FreeBSD-src-49aed043c3266b2e37f1471676abad2c49d7fac5.zip FreeBSD-src-49aed043c3266b2e37f1471676abad2c49d7fac5.tar.gz |
Fix a (mostly harmless) bogon when allocating space above the stack
in the stack gap..
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_util.h b/sys/compat/linux/linux_util.h index 6a09cf3..64ab68d 100644 --- a/sys/compat/linux/linux_util.h +++ b/sys/compat/linux/linux_util.h @@ -28,7 +28,7 @@ * * from: svr4_util.h,v 1.5 1994/11/18 02:54:31 christos Exp * from: linux_util.h,v 1.2 1995/03/05 23:23:50 fvdl Exp - * $Id: linux_util.h,v 1.1 1996/03/02 19:38:02 peter Exp $ + * $Id: linux_util.h,v 1.2 1996/03/10 08:42:48 sos Exp $ */ /* @@ -57,7 +57,7 @@ static __inline void *stackgap_alloc(caddr_t *, size_t); static __inline caddr_t stackgap_init() { -#define szsigcode (*(curproc->p_sysent->sv_szsigcode), sizeof(char *)) +#define szsigcode (*(curproc->p_sysent->sv_szsigcode)) return (caddr_t)(((caddr_t)PS_STRINGS) - szsigcode - SPARE_USRSPACE); } |