From owner-freebsd-current Sat Jul 24 16: 7:13 1999 Delivered-To: freebsd-current@freebsd.org Received: from reliam.teaser.fr (reliam.teaser.fr [194.51.80.12]) by hub.freebsd.org (Postfix) with ESMTP id 1797F1516D for ; Sat, 24 Jul 1999 16:07:09 -0700 (PDT) (envelope-from nsouch@teaser.fr) Received: from teaser.fr (ppp1087-ft.teaser.fr [194.206.156.40]) by reliam.teaser.fr (8.9.3/8.9.3) with ESMTP id BAA05842; Sun, 25 Jul 1999 01:06:21 +0200 (MET DST) Received: (from nsouch@localhost) by teaser.fr (8.9.3/8.9.1) id BAA06538; Sun, 25 Jul 1999 01:08:07 +0200 (CEST) (envelope-from nsouch) Message-ID: <19990725010807.06199@breizh.teaser.fr> Date: Sun, 25 Jul 1999 01:08:07 +0200 From: Nicolas Souchu To: Bruce Evans Cc: des@flood.ping.uio.no, sobomax@altavista.net, current@FreeBSD.ORG, obrien@NUXI.com Subject: Re: PLIP is still broken :( References: <199907190937.TAA28795@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199907190937.TAA28795@godzilla.zeta.org.au>; from Bruce Evans on Mon, Jul 19, 1999 at 07:37:02PM +1000 X-Operating-System: FreeBSD breizh 4.0-CURRENT FreeBSD 4.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jul 19, 1999 at 07:37:02PM +1000, Bruce Evans wrote: > >>You misunderstood what Bruce wrote. PLIP has always been broken. It >>used to be possible to hack around the brokenness by setting the >>interrupt mask to net instead of tty. With newbus, this hack is no >>longer possible (it was never correct anyway; it broke printing). Or we shall consider changing isa_compat.c if we choose splnet for lpt. > >Or by statically configuring SLIP (which forced tty = net), or maybe >by dynamically configuring PPP. The tty = net hack went away with >old-bus, so SLIP is broken in much the same way as PLIP. > >>The problem with PLIP is that it tries to do splnet stuff in at >>spltty. If you force the parallell port driver to run at splnet, PLIP >>works but you get panics when you print because it tries to do spltty >>stuff at splnet. > >Possible quick fix (hack): change all the spltty()'s in lpt.c to >splnet()'s. lpt isn't a tty driver; it just abuses spltty(). Abusing >splnet() instead should work OK for lpt and fix if_plip. This seems good until the intr stuff handle dynamic update of a interrupt spl. Is there some work in progress on that? > >Bruce > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-current" in the body of the message > -- nsouch@teaser.fr / nsouch@freebsd.org FreeBSD - Turning PCs into workstations - http://www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message