summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-07-01 16:58:07 +0000
committerkettenis <kettenis@openbsd.org>2020-07-01 16:58:07 +0000
commit096d0380b1447b607301e8c02393eeebfa5152a8 (patch)
tree66d9de83344228d096d22f519c0c73de235f716f
parentAllow hrStorageSize and hrStorageUsed to cope with sizes larger then (diff)
downloadwireguard-openbsd-096d0380b1447b607301e8c02393eeebfa5152a8.tar.xz
wireguard-openbsd-096d0380b1447b607301e8c02393eeebfa5152a8.zip
Increase/decrease ci_idepth before/after calling interrupt handlers.
-rw-r--r--sys/arch/powerpc64/powerpc64/trap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/powerpc64/powerpc64/trap.c b/sys/arch/powerpc64/powerpc64/trap.c
index 226f25f782f..6afcb5fff21 100644
--- a/sys/arch/powerpc64/powerpc64/trap.c
+++ b/sys/arch/powerpc64/powerpc64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.20 2020/07/01 16:05:48 kettenis Exp $ */
+/* $OpenBSD: trap.c,v 1.21 2020/07/01 16:58:07 kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@ -59,10 +59,14 @@ trap(struct trapframe *frame)
switch (type) {
case EXC_DECR:
+ ci->ci_idepth++;
decr_intr(frame);
+ ci->ci_idepth--;
return;
case EXC_HVI:
+ ci->ci_idepth++;
hvi_intr(frame);
+ ci->ci_idepth--;
return;
}