]>
git.saurik.com Git - apple/xnu.git/blob - bsd/kern/spl.c
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
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
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
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.
23 * @APPLE_LICENSE_HEADER_END@
25 #include <machine/machine_routines.h>
26 #include <machine/spl.h>
27 #include <kern/thread.h>
33 if(thread_funnel_get() == THR_FUNNEL_NULL
)
34 panic("%s not under funnel", "sploff()");
42 if(thread_funnel_get() == THR_FUNNEL_NULL
)
43 panic("%s not under funnel", "splhigh()");
51 if(thread_funnel_get() == THR_FUNNEL_NULL
)
52 panic("%s not under funnel", "splsched()");
60 if(thread_funnel_get() == THR_FUNNEL_NULL
)
61 panic("%s not under funnel", "splclock()");
69 if(thread_funnel_get() == THR_FUNNEL_NULL
)
70 panic("%s not under funnel", "splpower()");
78 if(thread_funnel_get() == THR_FUNNEL_NULL
)
79 panic("%s not under funnel", "splvm()");
87 if(thread_funnel_get() == THR_FUNNEL_NULL
)
88 panic("%s not under funnel", "splbio()");
96 if(thread_funnel_get() == THR_FUNNEL_NULL
)
97 panic("%s not under funnel", "splimp()");
104 if(thread_funnel_get() == THR_FUNNEL_NULL
)
105 panic("%s not under funnel", "spltty()");
113 if(thread_funnel_get() == THR_FUNNEL_NULL
)
114 panic("%s not under funnel", "splnet()");
121 if(thread_funnel_get() == THR_FUNNEL_NULL
)
122 panic("%s not under funnel", "splsoftclock()");
129 if(thread_funnel_get() == THR_FUNNEL_NULL
)
130 panic("%s not under funnel", "spllo()");
137 if(thread_funnel_get() == THR_FUNNEL_NULL
)
138 panic("%s not under funnel", "spl0()");
145 if(thread_funnel_get() == THR_FUNNEL_NULL
)
146 panic("%s not under funnel", "spln()");
153 if(thread_funnel_get() == THR_FUNNEL_NULL
)
154 panic("%s not under funnel", "splx()");
161 if(thread_funnel_get() == THR_FUNNEL_NULL
)
162 panic("%s not under funnel", "splon()");