]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
43866e37 | 6 | * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. |
1c79356b | 7 | * |
43866e37 A |
8 | * This file contains Original Code and/or Modifications of Original Code |
9 | * as defined in and that are subject to the Apple Public Source License | |
10 | * Version 2.0 (the 'License'). You may not use this file except in | |
11 | * compliance with the License. Please obtain a copy of the License at | |
12 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
13 | * file. | |
14 | * | |
15 | * The Original Code and all software distributed under the License are | |
16 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
1c79356b A |
17 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
18 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
43866e37 A |
19 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
20 | * Please see the License for the specific language governing rights and | |
21 | * limitations under the License. | |
1c79356b A |
22 | * |
23 | * @APPLE_LICENSE_HEADER_END@ | |
24 | */ | |
25 | #include <machine/machine_routines.h> | |
26 | #include <machine/spl.h> | |
27 | #include <kern/thread.h> | |
28 | ||
29 | unsigned | |
30 | sploff( | |
31 | void) | |
32 | { | |
33 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
34 | panic("%s not under funnel", "sploff()"); | |
35 | return(0); | |
36 | } | |
37 | ||
38 | unsigned | |
39 | splhigh( | |
40 | void) | |
41 | { | |
42 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
43 | panic("%s not under funnel", "splhigh()"); | |
44 | return(0); | |
45 | } | |
46 | ||
47 | unsigned | |
48 | splsched( | |
49 | void) | |
50 | { | |
51 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
52 | panic("%s not under funnel", "splsched()"); | |
53 | return(0); | |
54 | } | |
55 | ||
56 | unsigned | |
57 | splclock ( | |
58 | void) | |
59 | { | |
60 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
61 | panic("%s not under funnel", "splclock()"); | |
62 | return(0); | |
63 | } | |
64 | ||
65 | unsigned | |
66 | splpower ( | |
67 | void) | |
68 | { | |
69 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
70 | panic("%s not under funnel", "splpower()"); | |
71 | return(0); | |
72 | } | |
73 | ||
74 | unsigned | |
75 | splvm( | |
76 | void) | |
77 | { | |
78 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
79 | panic("%s not under funnel", "splvm()"); | |
80 | return(0); | |
81 | } | |
82 | ||
83 | unsigned | |
84 | splbio ( | |
85 | void) | |
86 | { | |
87 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
88 | panic("%s not under funnel", "splbio()"); | |
89 | return(0); | |
90 | } | |
91 | ||
92 | unsigned | |
93 | splimp( | |
94 | void) | |
95 | { | |
96 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
97 | panic("%s not under funnel", "splimp()"); | |
98 | return(0); | |
99 | } | |
100 | ||
101 | unsigned | |
102 | spltty(void) | |
103 | { | |
104 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
105 | panic("%s not under funnel", "spltty()"); | |
106 | return(0); | |
107 | } | |
108 | ||
109 | unsigned | |
110 | splnet( | |
111 | void) | |
112 | { | |
113 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
114 | panic("%s not under funnel", "splnet()"); | |
115 | return(0); | |
116 | } | |
117 | ||
118 | unsigned | |
119 | splsoftclock(void) | |
120 | { | |
121 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
122 | panic("%s not under funnel", "splsoftclock()"); | |
123 | return(0); | |
124 | } | |
125 | ||
126 | void | |
127 | spllo(void) | |
128 | { | |
129 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
130 | panic("%s not under funnel", "spllo()"); | |
131 | return; | |
132 | } | |
133 | ||
134 | void | |
135 | spl0(void) | |
136 | { | |
137 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
138 | panic("%s not under funnel", "spl0()"); | |
139 | return; | |
140 | } | |
141 | ||
142 | void | |
143 | spln(unsigned t) | |
144 | { | |
145 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
146 | panic("%s not under funnel", "spln()"); | |
147 | return; | |
148 | } | |
149 | ||
150 | void | |
151 | splx(unsigned l) | |
152 | { | |
153 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
154 | panic("%s not under funnel", "splx()"); | |
155 | return; | |
156 | } | |
157 | ||
158 | void | |
159 | splon(unsigned l) | |
160 | { | |
161 | if(thread_funnel_get() == THR_FUNNEL_NULL) | |
162 | panic("%s not under funnel", "splon()"); | |
163 | return; | |
164 | } |