diff options
-rw-r--r-- | sys/dev/kcov.c | 5 |
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); |