From owner-freebsd-hackers Sat Jul 15 19: 2: 8 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 871A437B7AB for ; Sat, 15 Jul 2000 19:02:00 -0700 (PDT) (envelope-from grog@wantadilla.lemis.com) Received: (from grog@localhost) by wantadilla.lemis.com (8.9.3/8.9.3) id LAA60655; Sun, 16 Jul 2000 11:31:50 +0930 (CST) (envelope-from grog) Date: Sun, 16 Jul 2000 11:31:50 +0930 From: Greg Lehey To: Brandon Fosdick Cc: hackers@FreeBSD.ORG Subject: Re: Interrupt Handler? Message-ID: <20000716113149.B57098@wantadilla.lemis.com> References: <396E804C.69F07189@glue.umd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <396E804C.69F07189@glue.umd.edu> Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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