From owner-freebsd-hackers Tue Sep 9 14:19:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA06699 for hackers-outgoing; Tue, 9 Sep 1997 14:19:32 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id OAA06684 for ; Tue, 9 Sep 1997 14:19:28 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA26142; Tue, 9 Sep 1997 23:19:27 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id WAA00738; Tue, 9 Sep 1997 22:58:01 +0200 (MET DST) Message-ID: <19970909225801.RL53370@uriah.heep.sax.de> Date: Tue, 9 Sep 1997 22:58:01 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@FreeBSD.ORG Cc: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Subject: Re: interrupts in interrupt routines References: <199709090626.IAA18398@labinfo.iet.unipi.it> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199709090626.IAA18398@labinfo.iet.unipi.it>; from Luigi Rizzo on Sep 9, 1997 08:26:57 +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Luigi Rizzo wrote: > am I correct in assuming that within an interrupt driver interrupst are > masked according to the imask declared in the config line ? > > e.g. > > device pcm0 at isa? tty ... vectpr pcmintr > > results in pcmintr() being called at spltty ? RTFM. :-) SPL(9) FreeBSD Kernel Developer's Manual SPL(9) NAME splbio, splclock, splhigh, splimp, splnet, splsoftclock, splsofttty, splstatclock, spltty, splvm, spl0, splx - manipulate interrupt priorities ... Each driver that uses interrupts is normally assigned to an interrupt priority group by a keyword in its config line. For example: device foo0 at isa? port 0x0815 irq 12 tty vector foointr assigns interrupt 12 to the ``tty'' priority group. The system automati- cally arranges for interrupts in the xxx group to be called at a priority >= splxxx (). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)