summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include/cpu.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-01-06 12:50:49 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-01-06 12:50:49 +0000
commit9dddce030eb87a866b16bd155ed927c34dec06d8 (patch)
treecf509cf80051cced9aa3165ba0c7c95141019d07 /sys/arch/amd64/include/cpu.h
parentcb240f2325fc8b0923d29bb6e5ad09aa0dc4067c (diff)
when we're entering an interrupt handler, record its ipl so splassert
can check if we're entering code we think should only be used from lower ipls. modelled a bit on how sparc64 does things. with help from and ok kettenis@
Diffstat (limited to 'sys/arch/amd64/include/cpu.h')
-rw-r--r--sys/arch/amd64/include/cpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/cpu.h b/sys/arch/amd64/include/cpu.h
index 3f815e557b5..b06d58bc096 100644
--- a/sys/arch/amd64/include/cpu.h
+++ b/sys/arch/amd64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.88 2014/12/16 21:20:23 tedu Exp $ */
+/* $OpenBSD: cpu.h,v 1.89 2015/01/06 12:50:48 dlg Exp $ */
/* $NetBSD: cpu.h,v 1.1 2003/04/26 18:39:39 fvdl Exp $ */
/*-
@@ -85,6 +85,7 @@ struct cpu_info {
u_int64_t ci_ipending;
int ci_ilevel;
int ci_idepth;
+ int ci_handled_intr_level;
u_int64_t ci_imask[NIPL];
u_int64_t ci_iunmask[NIPL];
#ifdef DIAGNOSTIC