*BSD News Article 18582


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!mel.dit.csiro.au!its.csiro.au!dmssyd.syd.dms.CSIRO.AU!metro!sequoia!ultima!kralizec.zeta.org.au!kralizec.zeta.org.au!not-for-mail
From: bde@kralizec.zeta.org.au (Bruce Evans)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Sound Blaster at patch level 0.2.4
Date: 17 Jul 1993 01:17:14 +1000
Organization: Kralizec Dialup Unix Sydney: +61-2-837-1183 V.32bis
Lines: 18
Message-ID: <226gpqINN6h@kralizec.zeta.org.au>
References: <1993Jul14.140005.18111@rchland.ibm.com>
NNTP-Posting-Host: kralizec.zeta.org.au

In <1993Jul14.140005.18111@rchland.ibm.com> nistler@rchland.vnet.ibm.com (John Nistler) writes:

>I upgraded to patch level 0.2.4, but now my kernel will not build because the identifier _sb0mask is not defined.  I know this has to do with the config entries. Entries like the com devices have the keyword 'tty' in their entry so ttymask is used, and a device like npx0 doesn't and a identifier, so npx0mask is used in the generated code.  Anyone have any ideas?

Temporary fix: add "int sb0mask" to the soundblaster driver.

This won't do anything except allow the driver to compile, but neither
did the automatically-generated sb0mask in previous versions.

There may be bugs behind this.  Since the driver is using an interrupt,
it probably needs to call splsoundblaster() to protect some layers of
the driver from the interrupt.  But there is no such spl.  If it is
calling spltty() or splbio(), then it needs to be in the tty or bio
class of drivers.  The printer driver is in the tty class of drivers
just to get an spl.  It would be preferable if it were in a class by
itself.
-- 
Bruce Evans  bde@kralizec.zeta.org.au