Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Apr 2003 16:32:24 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Kan Cai <kcai@cs.ubc.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: the CPU interrupt handler
Message-ID:  <3E8E2418.9B46EBDD@mindspring.com>
References:  <Pine.GSO.4.53.0304041458570.13911@granville.cs.ubc.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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_*"
in /usr/src/sys/i386/isa/intr_machdep.c.

-- Terry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E8E2418.9B46EBDD>