]>
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 * 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.
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
20 * @APPLE_LICENSE_HEADER_END@
22 #include <machine/machine_routines.h>
23 #include <machine/spl.h>
24 #include <kern/thread.h>
30 if(thread_funnel_get() == THR_FUNNEL_NULL
)
31 panic("%s not under funnel", "sploff()");
39 if(thread_funnel_get() == THR_FUNNEL_NULL
)
40 panic("%s not under funnel", "splhigh()");
48 if(thread_funnel_get() == THR_FUNNEL_NULL
)
49 panic("%s not under funnel", "splsched()");
57 if(thread_funnel_get() == THR_FUNNEL_NULL
)
58 panic("%s not under funnel", "splclock()");
66 if(thread_funnel_get() == THR_FUNNEL_NULL
)
67 panic("%s not under funnel", "splpower()");
75 if(thread_funnel_get() == THR_FUNNEL_NULL
)
76 panic("%s not under funnel", "splvm()");
84 if(thread_funnel_get() == THR_FUNNEL_NULL
)
85 panic("%s not under funnel", "splbio()");
93 if(thread_funnel_get() == THR_FUNNEL_NULL
)
94 panic("%s not under funnel", "splimp()");
101 if(thread_funnel_get() == THR_FUNNEL_NULL
)
102 panic("%s not under funnel", "spltty()");
110 if(thread_funnel_get() == THR_FUNNEL_NULL
)
111 panic("%s not under funnel", "splnet()");
118 if(thread_funnel_get() == THR_FUNNEL_NULL
)
119 panic("%s not under funnel", "splsoftclock()");
126 if(thread_funnel_get() == THR_FUNNEL_NULL
)
127 panic("%s not under funnel", "spllo()");
134 if(thread_funnel_get() == THR_FUNNEL_NULL
)
135 panic("%s not under funnel", "spl0()");
142 if(thread_funnel_get() == THR_FUNNEL_NULL
)
143 panic("%s not under funnel", "spln()");
150 if(thread_funnel_get() == THR_FUNNEL_NULL
)
151 panic("%s not under funnel", "splx()");
158 if(thread_funnel_get() == THR_FUNNEL_NULL
)
159 panic("%s not under funnel", "splon()");