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