diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-01-06 12:50:49 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-01-06 12:50:49 +0000 |
commit | 9dddce030eb87a866b16bd155ed927c34dec06d8 (patch) | |
tree | cf509cf80051cced9aa3165ba0c7c95141019d07 /sys/arch/amd64/include/cpu.h | |
parent | cb240f2325fc8b0923d29bb6e5ad09aa0dc4067c (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.h | 3 |
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 |