Variable spltty a la Jason Thorpe. Needed for the DraCo variant of com.c.
This commit is contained in:
parent
9035d87865
commit
ff0ad9cabb
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: psl.h,v 1.10 1996/10/13 03:07:40 christos Exp $ */
|
||||
/* $NetBSD: psl.h,v 1.11 1996/11/30 00:33:49 is Exp $ */
|
||||
|
||||
#ifndef _MACHINE_PSL_H_
|
||||
#define _MACHINE_PSL_H_
|
||||
@ -63,8 +63,25 @@
|
||||
#define splsoftnet() spl1()
|
||||
#define splbio() spl3()
|
||||
#define splnet() spl3()
|
||||
#define spltty() spl4()
|
||||
#define splimp() spl4()
|
||||
|
||||
/*
|
||||
* spltty hack, idea by Jason Thorpe.
|
||||
* drivers which need it (at the present only drcom) raise the variable to
|
||||
* spl5 (the idea being that only ser.c really wants it below 5, and ser
|
||||
* and drcom will never be present at the same time).
|
||||
*
|
||||
* XXX ttyspl is statically initialized in drcom.c at the moment; should
|
||||
* be some driver independent file.
|
||||
*
|
||||
* XXX should ttyspl be volatile? I think not; it is intended to be set only
|
||||
* during xxx_attach() time, and will be used only later.
|
||||
* -is
|
||||
*/
|
||||
|
||||
extern u_int16_t amiga_ttyspl;
|
||||
#define spltty() _spl(amiga_ttyspl)
|
||||
#define splimp() spltty() /* XXX for the full story, see i386 */
|
||||
|
||||
#ifndef LEV6_DEFER
|
||||
#define splclock() spl6()
|
||||
#define splstatclock() spl6()
|
||||
|
Loading…
x
Reference in New Issue
Block a user