diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2017-12-19 10:05:00 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2017-12-19 10:05:00 +0000 |
commit | 9df006edf794f41b5f9e5925201a72d4865092f5 (patch) | |
tree | 9c9899defbb43f1368677947ebd4ff560761b3be | |
parent | 18bfb66eabe7ddea069fb3e89b18b186cb311a12 (diff) |
Remove unused ps_stackgap from process struct
Nothing uses this field since Linux compat was removed.
ok mpi@ deraadt@ guenther@
-rw-r--r-- | sys/kern/kern_exec.c | 5 | ||||
-rw-r--r-- | sys/sys/proc.h | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index c12c5848240..eba148ed24a 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.190 2017/12/12 01:12:34 deraadt Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.191 2017/12/19 10:04:59 stefan Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -453,9 +453,6 @@ sys_execve(struct proc *p, void *v, register_t *retval) if (error) goto exec_abort; - /* old "stackgap" is gone now */ - pr->ps_stackgap = 0; - #ifdef MACHINE_STACK_GROWS_UP pr->ps_strings = (vaddr_t)vm->vm_maxsaddr + sgap; if (uvm_map_protect(&vm->vm_map, (vaddr_t)vm->vm_maxsaddr, diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 1addf7529cd..d73e6aaa60a 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.243 2017/12/14 00:41:58 dlg Exp $ */ +/* $OpenBSD: proc.h,v 1.244 2017/12/19 10:04:59 stefan Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -203,7 +203,6 @@ struct process { char ps_comm[MAXCOMLEN+1]; vaddr_t ps_strings; /* User pointers to argv/env */ - vaddr_t ps_stackgap; /* User pointer to the "stackgap" */ vaddr_t ps_sigcode; /* User pointer to the signal code */ vaddr_t ps_sigcoderet; /* User pointer to sigreturn retPC */ u_long ps_sigcookie; |