the CPU interrupt handler
tlambert2 at mindspring.com
Fri Apr 4 16:34:02 PST 2003
Kan Cai wrote:
> I am trying to locate the CPU interrupt handler, but with no luck. I
> guess it is somewhere in the "1386" folder, but not sure which file is
> doing the job. Could someone there shed some lights on this?
> Since I am trying to capture the NIC interrupts, so it should not be
> exceptions. Thanks a lot.
You need to look at an existing NIC driver to see how it
grabs interrupts. The functions you are probably interested
in are bus_setup_intr() and bus_teardown_intr().
If you are trying to do this in an evil, i386 way, because you
want to intercept the interrupt path for some legitimate
instrumentation purpose, or because you have some wrong idea
that this will make your networking product run faster, then
you could do worse than to look at the functions "inthand_*"
More information about the freebsd-hackers