FreeBSD/Linux Kernel Cross Reference
sys/i386/machspl.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1993,1992,1991,1990 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: machspl.h,v $
29 * Revision 2.3 93/11/17 16:36:39 dbg
30 * Added prototypes for SPL functions.
31 * [93/05/21 dbg]
32 *
33 * Revision 2.2 93/05/15 20:58:58 mrt
34 * Used to be machparam.h
35 * [93/05/15 mrt]
36 *
37 * Revision 2.5 93/01/14 17:29:17 danner
38 * Proper spl typing.
39 * [92/11/30 af]
40 *
41 * Revision 2.4 91/05/14 16:11:57 mrt
42 * Correcting copyright
43 *
44 * Revision 2.3 91/02/05 17:13:13 mrt
45 * Changed to new Mach copyright
46 * [91/02/01 17:36:08 mrt]
47 *
48 * Revision 2.2 90/05/03 15:34:01 dbg
49 * Created.
50 * [90/02/08 dbg]
51 *
52 */
53
54 #ifndef _MACHINE_MACHSPL_H_
55 #define _MACHINE_MACHSPL_H_ 1
56
57 /*
58 * Machine-dependent SPL definitions.
59 *
60 * SPLs are true functions on i386, defined elsewhere.
61 */
62
63 typedef int spl_t;
64
65 extern spl_t spl0(void);
66 extern spl_t splbio(void);
67 extern spl_t spltty(void);
68 extern spl_t splhigh(void);
69
70 #define splsched() (splhigh())
71 #define splclock() (splhigh())
72 #define splvm() (splhigh())
73 #define splimp() (splhigh())
74
75 extern void splx(spl_t);
76
77 #endif /* _MACHINE_MACHSPL_H_ */
Cache object: b00731be3a52013e6aafae330ff1d230
|