xref: /csrg-svn/sys/hp300/include/mtpr.h (revision 41474)
1*41474Smckusick /*
2*41474Smckusick  * Copyright (c) 1988 University of Utah.
3*41474Smckusick  * Copyright (c) 1990 The Regents of the University of California.
4*41474Smckusick  * All rights reserved.
5*41474Smckusick  *
6*41474Smckusick  * This code is derived from software contributed to Berkeley by
7*41474Smckusick  * the Systems Programming Group of the University of Utah Computer
8*41474Smckusick  * Science Department.
9*41474Smckusick  *
10*41474Smckusick  * %sccs.include.redist.c%
11*41474Smckusick  *
12*41474Smckusick  * from: Utah $Hdr: mtpr.h 1.5 89/04/11$
13*41474Smckusick  *
14*41474Smckusick  *	@(#)mtpr.h	7.1 (Berkeley) 05/08/90
15*41474Smckusick  */
16*41474Smckusick 
17*41474Smckusick /*
18*41474Smckusick  * simulated software interrupt register
19*41474Smckusick  */
20*41474Smckusick 
21*41474Smckusick extern unsigned char ssir;
22*41474Smckusick 
23*41474Smckusick #define SIR_NET		0x1
24*41474Smckusick #define SIR_CLOCK	0x2
25*41474Smckusick 
26*41474Smckusick #define siroff(x)	ssir &= ~(x)
27*41474Smckusick #define setsoftnet()	ssir |= SIR_NET
28*41474Smckusick #define setsoftclock()	ssir |= SIR_CLOCK
29