Annotation of XNU/bsd/kern/spl.c, revision 1.1.1.1

1.1       root        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:        return(thread_set_funneled(TRUE));
                     31: }
                     32: 
                     33: unsigned
                     34: splhigh(
                     35:        void)
                     36: {
                     37:        return(thread_set_funneled(TRUE));
                     38: }
                     39: 
                     40: unsigned
                     41: splsched(
                     42:        void)
                     43: {
                     44:        return(thread_set_funneled(TRUE));
                     45: }
                     46: 
                     47: unsigned
                     48: splclock (
                     49:        void)
                     50: {
                     51:        return(thread_set_funneled(TRUE));
                     52: }
                     53: 
                     54: unsigned
                     55: splpower (
                     56:        void)
                     57: {
                     58:        return(thread_set_funneled(TRUE));
                     59: }
                     60: 
                     61: unsigned
                     62: splvm(
                     63:        void)
                     64: {
                     65:        return(thread_set_funneled(TRUE));
                     66: }
                     67: 
                     68: unsigned
                     69: splbio (
                     70:        void)
                     71: {
                     72:        return(thread_set_funneled(TRUE));
                     73: }
                     74: 
                     75: unsigned
                     76: splimp(
                     77:        void)
                     78: {
                     79:        return(thread_set_funneled(TRUE));
                     80: }
                     81: 
                     82: unsigned
                     83: spltty(void)
                     84: {
                     85:        return(thread_set_funneled(TRUE));
                     86: }
                     87: 
                     88: unsigned
                     89: splnet(
                     90:        void)
                     91: {
                     92:        return(thread_set_funneled(TRUE));
                     93: }
                     94: 
                     95: unsigned
                     96: splsoftclock(void)
                     97: {
                     98:        return(thread_set_funneled(TRUE));
                     99: }
                    100: 
                    101: void
                    102: spllo(void)
                    103: {
                    104:        (void)thread_set_funneled(FALSE);
                    105: }
                    106: 
                    107: void
                    108: spl0(void)
                    109: {
                    110:        (void)thread_set_funneled(FALSE);
                    111: }
                    112: 
                    113: void
                    114: spln(unsigned t)
                    115: {
                    116:        (void)thread_set_funneled((boolean_t) t);
                    117: }
                    118: 
                    119: void
                    120: splx(unsigned l)
                    121: {
                    122:        (void)thread_set_funneled((boolean_t) l);
                    123: }
                    124: 
                    125: void
                    126: splon(unsigned l)
                    127: {
                    128:        (void)thread_set_funneled((boolean_t) l);
                    129: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.