]> git.saurik.com Git - apple/xnu.git/blame - bsd/kern/spl.c
xnu-123.5.tar.gz
[apple/xnu.git] / bsd / kern / spl.c
CommitLineData
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
26unsigned
27sploff(
28 void)
29{
30 if(thread_funnel_get() == THR_FUNNEL_NULL)
31 panic("%s not under funnel", "sploff()");
32 return(0);
33}
34
35unsigned
36splhigh(
37 void)
38{
39 if(thread_funnel_get() == THR_FUNNEL_NULL)
40 panic("%s not under funnel", "splhigh()");
41 return(0);
42}
43
44unsigned
45splsched(
46 void)
47{
48 if(thread_funnel_get() == THR_FUNNEL_NULL)
49 panic("%s not under funnel", "splsched()");
50 return(0);
51}
52
53unsigned
54splclock (
55 void)
56{
57 if(thread_funnel_get() == THR_FUNNEL_NULL)
58 panic("%s not under funnel", "splclock()");
59 return(0);
60}
61
62unsigned
63splpower (
64 void)
65{
66 if(thread_funnel_get() == THR_FUNNEL_NULL)
67 panic("%s not under funnel", "splpower()");
68 return(0);
69}
70
71unsigned
72splvm(
73 void)
74{
75 if(thread_funnel_get() == THR_FUNNEL_NULL)
76 panic("%s not under funnel", "splvm()");
77 return(0);
78}
79
80unsigned
81splbio (
82 void)
83{
84 if(thread_funnel_get() == THR_FUNNEL_NULL)
85 panic("%s not under funnel", "splbio()");
86 return(0);
87}
88
89unsigned
90splimp(
91 void)
92{
93 if(thread_funnel_get() == THR_FUNNEL_NULL)
94 panic("%s not under funnel", "splimp()");
95 return(0);
96}
97
98unsigned
99spltty(void)
100{
101 if(thread_funnel_get() == THR_FUNNEL_NULL)
102 panic("%s not under funnel", "spltty()");
103 return(0);
104}
105
106unsigned
107splnet(
108 void)
109{
110 if(thread_funnel_get() == THR_FUNNEL_NULL)
111 panic("%s not under funnel", "splnet()");
112 return(0);
113}
114
115unsigned
116splsoftclock(void)
117{
118 if(thread_funnel_get() == THR_FUNNEL_NULL)
119 panic("%s not under funnel", "splsoftclock()");
120 return(0);
121}
122
123void
124spllo(void)
125{
126 if(thread_funnel_get() == THR_FUNNEL_NULL)
127 panic("%s not under funnel", "spllo()");
128 return;
129}
130
131void
132spl0(void)
133{
134 if(thread_funnel_get() == THR_FUNNEL_NULL)
135 panic("%s not under funnel", "spl0()");
136 return;
137}
138
139void
140spln(unsigned t)
141{
142 if(thread_funnel_get() == THR_FUNNEL_NULL)
143 panic("%s not under funnel", "spln()");
144 return;
145}
146
147void
148splx(unsigned l)
149{
150 if(thread_funnel_get() == THR_FUNNEL_NULL)
151 panic("%s not under funnel", "splx()");
152 return;
153}
154
155void
156splon(unsigned l)
157{
158 if(thread_funnel_get() == THR_FUNNEL_NULL)
159 panic("%s not under funnel", "splon()");
160 return;
161}