diff options
author | 2020-07-01 16:58:07 +0000 | |
---|---|---|
committer | 2020-07-01 16:58:07 +0000 | |
commit | 096d0380b1447b607301e8c02393eeebfa5152a8 (patch) | |
tree | 66d9de83344228d096d22f519c0c73de235f716f | |
parent | Allow hrStorageSize and hrStorageUsed to cope with sizes larger then (diff) | |
download | wireguard-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.c | 6 |
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; } |