summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-05-14 13:44:46 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-05-14 13:44:46 +0000
commit985a2ecd25c6ae0323c36eaddffe762ad568a220 (patch)
tree9f2929d2240629d4636fac8804b85dd675a013df
parent5fcf1c6c496065dc3c89683ab37d49877c9cc6c4 (diff)
armv7 and arm64 also have ci_idepth
ok anton@
-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);