From owner-freebsd-current Mon Jul 19 2:37:36 1999 Delivered-To: freebsd-current@freebsd.org Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (Postfix) with ESMTP id 2E52A14C19 for ; Mon, 19 Jul 1999 02:37:24 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id TAA28795; Mon, 19 Jul 1999 19:37:02 +1000 Date: Mon, 19 Jul 1999 19:37:02 +1000 From: Bruce Evans Message-Id: <199907190937.TAA28795@godzilla.zeta.org.au> To: des@flood.ping.uio.no, sobomax@altavista.net Subject: Re: PLIP is still broken :( Cc: current@FreeBSD.ORG, obrien@NUXI.com Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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 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. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message