summaryrefslogtreecommitdiff
path: root/sys/arch/arm64/arm64/intr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/arm64/arm64/intr.c')
-rw-r--r--sys/arch/arm64/arm64/intr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/arm64/arm64/intr.c b/sys/arch/arm64/arm64/intr.c
index 8daaaf1bfeb..8e58d14d4d9 100644
--- a/sys/arch/arm64/arm64/intr.c
+++ b/sys/arch/arm64/arm64/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.13 2018/08/08 11:06:33 patrick Exp $ */
+/* $OpenBSD: intr.c,v 1.14 2019/05/13 20:55:22 drahn Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
*
@@ -56,8 +56,11 @@ void (*arm_intr_dispatch)(void *) = arm_dflt_intr;
void
arm_cpu_intr(void *frame)
{
- /* XXX - change this to have irq_dispatch use function pointer */
+ struct cpu_info *ci = curcpu();
+
+ ci->ci_idepth++;
(*arm_intr_dispatch)(frame);
+ ci->ci_idepth--;
}
void
arm_dflt_intr(void *frame)