Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2000 11:31:50 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Brandon Fosdick <bfoz@glue.umd.edu>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Interrupt Handler?
Message-ID:  <20000716113149.B57098@wantadilla.lemis.com>
In-Reply-To: <396E804C.69F07189@glue.umd.edu>
References:  <396E804C.69F07189@glue.umd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 13 July 2000 at 22:51:56 -0400, Brandon Fosdick wrote:
> Where/How does one implement a hardware interrupt handler? I haven't
> done this sort of thing since the days of DOS. I imagine its a lot
> different in *nix. :)

The low-level interrupt handlers are in
/usr/src/sys/i386/isa/exception.s.  Your device driver attach routine
will register its interrupt routine with BUS_SETUP_INTR, which will
cause the appropriate interrupt handler to transfer control to your
interrupt handler when an interrupt occurs.

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000716113149.B57098>