summaryrefslogtreecommitdiffstats
path: root/sys/dev/kcov.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2019-05-14 13:44:45 +0000
committerjsg <jsg@openbsd.org>2019-05-14 13:44:45 +0000
commit21fd49add1e4f8e1e19d6c9baf6d064f0fa26e80 (patch)
tree315b21fa196850821129239c9eabcfcb940cdb3d /sys/dev/kcov.c
parentallow specifying a cmdfile instead of trying to pipe in commands for -ef. (diff)
downloadwireguard-openbsd-21fd49add1e4f8e1e19d6c9baf6d064f0fa26e80.tar.xz
wireguard-openbsd-21fd49add1e4f8e1e19d6c9baf6d064f0fa26e80.zip
armv7 and arm64 also have ci_idepth
ok anton@
Diffstat (limited to 'sys/dev/kcov.c')
-rw-r--r--sys/dev/kcov.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/kcov.c b/sys/dev/kcov.c
index f29896d3892..bdf727747e5 100644
--- a/sys/dev/kcov.c
+++ b/sys/dev/kcov.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kcov.c,v 1.13 2019/01/20 09:57:23 anton Exp $ */
+/* $OpenBSD: kcov.c,v 1.14 2019/05/14 13:44:45 jsg Exp $ */
/*
* Copyright (c) 2018 Anton Lindqvist <anton@openbsd.org>
@@ -428,7 +428,8 @@ kd_free(struct kcov_dev *kd)
static inline int
inintr(void)
{
-#if defined(__amd64__) || defined(__i386__)
+#if defined(__amd64__) || defined(__arm__) || defined(__arm64__) || \
+ defined(__i386__)
return (curcpu()->ci_idepth > 0);
#else
return (0);