diff options
-rw-r--r-- | sys/kern/kern_fork.c | 8 | ||||
-rw-r--r-- | sys/sys/proc.h | 6 |
2 files changed, 4 insertions, 10 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 3977a9f2d4f..1bec397f183 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.216 2019/10/22 21:19:22 cheloha Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.217 2019/11/29 20:12:19 guenther Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -65,8 +65,6 @@ #include <uvm/uvm.h> #include <machine/tcb.h> -#include "kcov.h" - int nprocesses = 1; /* process 0 */ int nthreads = 1; /* proc 0 */ int randompid; /* when set to 1, pid's go random */ @@ -174,10 +172,6 @@ thread_new(struct proc *parent, vaddr_t uaddr) p->p_sleeplocks = NULL; #endif -#if NKCOV > 0 - p->p_kd = NULL; -#endif - return p; } diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 846d1946a92..55100a5368d 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.279 2019/11/12 04:20:21 visa Exp $ */ +/* $OpenBSD: proc.h,v 1.280 2019/11/29 20:12:19 guenther Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -368,6 +368,8 @@ struct proc { struct tusage p_tu; /* accumulated times. */ struct timespec p_rtime; /* Real time. */ + struct kcov_dev *p_kd; /* kcov device handle */ + int p_siglist; /* Signals arrived but not delivered. */ /* End area that is zeroed on creation. */ @@ -402,8 +404,6 @@ struct proc { u_short p_xstat; /* Exit status for wait; also stop signal. */ struct lock_list_entry *p_sleeplocks; - - struct kcov_dev *p_kd; }; /* Status values. */ |