when we're entering an interrupt handler, record its ipl so splassert
authordlg <dlg@openbsd.org>
Tue, 6 Jan 2015 12:50:47 +0000 (12:50 +0000)
committerdlg <dlg@openbsd.org>
Tue, 6 Jan 2015 12:50:47 +0000 (12:50 +0000)
commit9c9e7f9589640a9e5361bdda14b2fbff60e024b2
tree3bdbbe63927a9b64507d277a999affdeaece0f7c
parent29841941a85a992c1c121aead387678b3ab403ae
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@
sys/arch/amd64/amd64/acpi_machdep.c
sys/arch/amd64/amd64/cpu.c
sys/arch/amd64/amd64/intr.c
sys/arch/amd64/amd64/ipi.c
sys/arch/amd64/amd64/lapic.c
sys/arch/amd64/amd64/machdep.c
sys/arch/amd64/amd64/softintr.c
sys/arch/amd64/include/cpu.h