]>
Commit | Line | Data |
---|---|---|
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 | /* | |
23 | * @OSF_COPYRIGHT@ | |
24 | */ | |
25 | /* | |
26 | * Mach Operating System | |
27 | * Copyright (c) 1991,1990,1989 Carnegie Mellon University | |
28 | * All Rights Reserved. | |
29 | * | |
30 | * Permission to use, copy, modify and distribute this software and its | |
31 | * documentation is hereby granted, provided that both the copyright | |
32 | * notice and this permission notice appear in all copies of the | |
33 | * software, derivative works or modified versions, and any portions | |
34 | * thereof, and that both notices appear in supporting documentation. | |
35 | * | |
36 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" | |
37 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR | |
38 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. | |
39 | * | |
40 | * Carnegie Mellon requests users of this software to return to | |
41 | * | |
42 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU | |
43 | * School of Computer Science | |
44 | * Carnegie Mellon University | |
45 | * Pittsburgh PA 15213-3890 | |
46 | * | |
47 | * any improvements or extensions that they make and grant Carnegie Mellon | |
48 | * the rights to redistribute these changes. | |
49 | */ | |
50 | /* | |
51 | */ | |
52 | ||
53 | /* | |
54 | Copyright (c) 1988,1989 Prime Computer, Inc. Natick, MA 01760 | |
55 | All Rights Reserved. | |
56 | ||
57 | Permission to use, copy, modify, and distribute this | |
58 | software and its documentation for any purpose and | |
59 | without fee is hereby granted, provided that the above | |
60 | copyright notice appears in all copies and that both the | |
61 | copyright notice and this permission notice appear in | |
62 | supporting documentation, and that the name of Prime | |
63 | Computer, Inc. not be used in advertising or publicity | |
64 | pertaining to distribution of the software without | |
65 | specific, written prior permission. | |
66 | ||
67 | THIS SOFTWARE IS PROVIDED "AS IS", AND PRIME COMPUTER, | |
68 | INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS | |
69 | SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
70 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN | |
71 | NO EVENT SHALL PRIME COMPUTER, INC. BE LIABLE FOR ANY | |
72 | SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY | |
73 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR | |
74 | PROFITS, WHETHER IN ACTION OF CONTRACT, NEGLIGENCE, OR | |
75 | OTHER TORTIOUS ACTION, ARISING OUR OF OR IN CONNECTION | |
76 | WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
77 | */ | |
78 | ||
79 | #include <mach_kprof.h> | |
80 | ||
81 | #define SPL0 0 | |
82 | #define SPL1 1 | |
83 | #define SPL2 2 | |
84 | #define SPL3 3 | |
85 | #define SPL4 4 | |
86 | #define SPL5 5 | |
87 | #define SPL6 6 | |
88 | ||
89 | #define SPLPP 5 | |
90 | #define SPLTTY 6 | |
91 | #define SPLNI 6 | |
92 | ||
93 | #define IPLHI 8 | |
94 | #define SPLHI IPLHI | |
95 | ||
96 | #if MACH_KPROF | |
97 | #define SPL7 7 | |
98 | #else | |
99 | #define SPL7 IPLHI | |
100 | #endif | |
101 | ||
102 | #define SPL_CMP_GT(a, b) ((unsigned)(a) > (unsigned)(b)) | |
103 | #define SPL_CMP_LT(a, b) ((unsigned)(a) < (unsigned)(b)) | |
104 | #define SPL_CMP_GE(a, b) ((unsigned)(a) >= (unsigned)(b)) | |
105 | #define SPL_CMP_LE(a, b) ((unsigned)(a) <= (unsigned)(b)) | |
106 | ||
107 | #ifdef MACH_KERNEL | |
108 | #ifndef ASSEMBLER | |
109 | ||
110 | #include <i386/AT386/misc_protos.h> | |
111 | ||
112 | extern i386_intr_t ivect[]; | |
113 | extern int iunit[]; | |
114 | extern unsigned char intpri[]; | |
115 | #endif /* ASSEMBLER */ | |
116 | #endif /* MACH_KERNEL */ |