Fix a (mostly harmless) bogon when allocating space above the stack
in the stack gap..
This commit is contained in:
parent
d825f2fad0
commit
fd2289e5c3
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user