Subject: Missing splltp() for cobalt
To: None <port-cobalt@netbsd.org>
From: Florian Stoehr <netbsd@wolfnode.de>
List: port-cobalt
Date: 01/02/2006 14:35:22
Hi,

I tried to compile a cobalt 3.0 kernel with puc(4) enabled, which bails 
out in src/sys/dev/ic/lpc.c:244 - a call to spllpt().

Grepping showed that spllpt() is #defined to spltty() for most but not all 
ports:

sys/arch/acorn26/include/intr.h:#define spllpt()        raisespl(IPL_LPT)
sys/arch/algor/include/intr.h:#define   spllpt()        spltty()
sys/arch/alpha/include/intr.h:#define spllpt()          spltty()
sys/arch/amiga/include/intr.h:#define spllpt()  spl6()
sys/arch/amigappc/include/intr.h:#define spllpt()       spl6()
sys/arch/amigappc/include/intr.h:#define spllpt()       spltty()
sys/arch/arc/include/intr.h:#define spllpt()    spltty()                /* 
lpt driver */
sys/arch/arm/footbridge/footbridge_intr.h:#define spllpt()        spltty()
sys/arch/arm/include/arm32/psl.h:#define spllpt()       spltty()
sys/arch/atari/include/intr.h:#define spllpt()          spltty()
sys/arch/bebox/include/intr.h:#define spllpt()  spltty()
sys/arch/evbmips/include/intr.h:#define spllpt()        spltty()
sys/arch/evbsh5/include/intr.h:#define  spllpt() 
splsuperio()
sys/arch/hp700/include/intr.h:#define spllpt()  spltty()
sys/arch/hpcmips/include/intr.h:#define spllpt()        spltty()
sys/arch/ibmnws/include/intr.h:#define spllpt() spltty()
sys/arch/macppc/include/intr.h:#define spllpt() spltty()
sys/arch/mipsco/include/intr.h:#define spllpt() spltty()
sys/arch/mvmeppc/include/intr.h:#define spllpt()        spltty()
sys/arch/pmppc/include/intr.h:#define spllpt()  spltty()
sys/arch/powerpc/include/ibm4xx/ibm4xx_intr.h:#define spllpt()  spltty()
sys/arch/powerpc/marvell/marvell_intr.h:#define spllpt()        spltty()
sys/arch/prep/include/intr.h:#define spllpt()   spltty()
sys/arch/sandpoint/include/intr.h:#define spllpt()      spltty()
sys/arch/sgimips/include/intr.h:#define spllpt()        spltty()
sys/arch/sparc64/include/psl.h:SPLHOLD(spllpt, PIL_LPT)
sys/arch/sparc64/include/psl.h:#define  spllpt()        spllptX(__FILE__, 
__LINE__)
sys/arch/x86/include/intr.h:#define spllpt()    spltty()
sys/arch/x86/include/intr.h:#define     spllpt()        spltty()
sys/arch/xen/include/intr.h:#define spllpt()    spltty()
sys/arch/xen/include/intr.h:#define     spllpt()        spltty()



cobalt is missing. I added #define spllpt() spltty() to 
src/sys/arch/cobalt/include/intr.h, at least it compiles although I 
haven't testest it yet.

Can some developer please fix this for cobalt?

Thank you.
Florian