summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2019-11-29 20:12:20 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2019-11-29 20:12:20 +0000
commit1ea2f5f8d6342395afb41fb065fbec4a1edeb309 (patch)
treece3f6d5a5daf6631ca17f4e0320ca609b41b408a /sys/kern
parentb03405c270978e464a5edfb1fb6341eb84cb5d72 (diff)
Move kcov(4)'s p_kd into the "zero on create" section to simplify fork code
ok anton@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_fork.c8
1 files changed, 1 insertions, 7 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;
}