diff options
Diffstat (limited to 'sys/sys/exec.h')
-rw-r--r-- | sys/sys/exec.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/sys/exec.h b/sys/sys/exec.h index 81c13a7ca1b..3d8cf92e33a 100644 --- a/sys/sys/exec.h +++ b/sys/sys/exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec.h,v 1.27 2013/10/17 08:02:20 deraadt Exp $ */ +/* $OpenBSD: exec.h,v 1.28 2015/01/26 22:51:37 kettenis Exp $ */ /* $NetBSD: exec.h,v 1.59 1996/02/09 18:25:09 christos Exp $ */ /*- @@ -58,31 +58,11 @@ struct ps_strings { }; /* - * Address of ps_strings structure (in user space). - */ -#ifdef MACHINE_STACK_GROWS_UP -#define PS_STRINGS ((struct ps_strings *)(USRSTACK)) -#else -#define PS_STRINGS \ - ((struct ps_strings *)(USRSTACK - sizeof(struct ps_strings))) -#endif - -/* * Below the PS_STRINGS and sigtramp, we may require a gap on the stack * (used to copyin/copyout various emulation data structures). */ #define STACKGAPLEN (2*1024) /* plenty enough for now */ -#ifdef MACHINE_STACK_GROWS_UP -#define STACKGAPBASE_UNALIGNED \ - ((caddr_t)PS_STRINGS + sizeof(struct ps_strings)) -#else -#define STACKGAPBASE_UNALIGNED \ - ((caddr_t)PS_STRINGS - STACKGAPLEN) -#endif -#define STACKGAPBASE \ - ((caddr_t)ALIGN(STACKGAPBASE_UNALIGNED)) - /* * the following structures allow execve() to put together processes * in a more extensible and cleaner way. |