cvs commit: src/sys/ia64/ia64 interrupt.c nexus.c sapic.c
src/sys/ia64/include intr.h md_var.h sapicvar.h
marcel at FreeBSD.org
Mon Jul 30 22:29:35 UTC 2007
marcel 2007-07-30 22:29:33 UTC
FreeBSD src repository
sys/ia64/ia64 interrupt.c nexus.c sapic.c
sys/ia64/include intr.h md_var.h sapicvar.h
Rework the interrupt code and add support for interrupt filtering
(INTR_FILTER). This includes:
o Save a pointer to the sapic structure and IRQ for every vector,
so that we can quickly EOI, mask and unmask the interrupt.
o Add locking to the sapic code now that we can reprogram a
sapic on multiple CPUs at the same time.
o Use u_int for the vector and IRQ. We only have 256 vectors, so
using a 64-bit type for it is rather excessive.
o Properly handle concurrent registration of a handler for the
Since vectors have a corresponding priority, we should not map
IRQs to vectors in a linear fashion, but rather pick a vector
that has a priority in line with the interrupt type. This is left
for later. The vector/IRQ interchange has been untangled as much
as possible to make this easier.
Approved by: re (blacket)
Revision Changes Path
1.60 +114 -81 src/sys/ia64/ia64/interrupt.c
1.18 +1 -1 src/sys/ia64/ia64/nexus.c
1.14 +109 -80 src/sys/ia64/ia64/sapic.c
1.5 +1 -6 src/sys/ia64/include/intr.h
1.25 +1 -1 src/sys/ia64/include/md_var.h
1.5 +13 -8 src/sys/ia64/include/sapicvar.h
More information about the cvs-all