From owner-cvs-all Mon Jan 11 15:30:21 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA18500 for cvs-all-outgoing; Mon, 11 Jan 1999 15:30:21 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA18484; Mon, 11 Jan 1999 15:30:17 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.1a/8.9.1) with ESMTP id AAA09416; Tue, 12 Jan 1999 00:29:42 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id AAA58995; Tue, 12 Jan 1999 00:29:40 +0100 (MET) Date: Tue, 12 Jan 1999 00:29:39 +0100 From: Eivind Eklund To: Nicolas Souchu Cc: Bruce Evans , mike@smith.net.au, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/sys/dev/ppbus if_plip.c Message-ID: <19990112002939.X40114@bitbox.follo.net> References: <199901111619.DAA15585@godzilla.zeta.org.au> <19990111180819.P40114@bitbox.follo.net> <19990111231008.07819@breizh.prism.uvsq.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <19990111231008.07819@breizh.prism.uvsq.fr>; from Nicolas Souchu on Mon, Jan 11, 1999 at 11:10:08PM +0000 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Mon, Jan 11, 1999 at 11:10:08PM +0000, Nicolas Souchu wrote: > On Mon, Jan 11, 1999 at 06:08:20PM +0100, Eivind Eklund wrote: > >I have successfully called multiple spl registration functions from > >the attach function of a driver. This was necessary to get the BISDN > >tty code to work. > > Any good pointer to your code? Eh - it is too trivial for the code to be of much use (besides which re-distribution would probably be against some of the authors' wishes). The relevant parts are +/* XXX For blocking interrupts */ +#include ... and in the attach function: + /* XXX block interrupts XXX */ + INTRMASK(tty_imask, is->id_irq); + INTRMASK(net_imask, is->id_irq); + I don't know how the new bus framework will like this kind of behaviour, though. Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message