]> git.saurik.com Git - apple/xnu.git/blame - osfmk/x86_64/idt_table.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / osfmk / x86_64 / idt_table.h
CommitLineData
6d2010ae
A
1/*
2 * Copyright (c) 2009 Apple Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
0a7de745 5 *
6d2010ae
A
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
0a7de745 14 *
6d2010ae
A
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
0a7de745 17 *
6d2010ae
A
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
0a7de745 25 *
6d2010ae
A
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28
0a7de745
A
29TRAP(0x00, idt64_zero_div)
30TRAP_IST1(0x01, idt64_debug)
31TRAP_IST2(0x02, idt64_nmi)
32USER_TRAP(0x03, idt64_int3)
33USER_TRAP(0x04, idt64_into)
34USER_TRAP(0x05, idt64_bounds)
35TRAP(0x06, idt64_invop)
36TRAP(0x07, idt64_nofpu)
37TRAP_IST1(0x08, idt64_double_fault)
38TRAP(0x09, idt64_fpu_over)
39TRAP_ERR(0x0a, idt64_inv_tss)
40TRAP_IST1(0x0b, idt64_segnp)
41TRAP_IST1(0x0c, idt64_stack_fault)
42TRAP_IST1(0x0d, idt64_gen_prot)
43TRAP_SPC(0x0e, idt64_page_fault)
44TRAP(0x0f, idt64_trap_0f)
45TRAP(0x10, idt64_fpu_err)
46TRAP_ERR(0x11, idt64_alignment_check)
47TRAP_IST1(0x12, idt64_mc)
48TRAP(0x13, idt64_sse_err)
49TRAP(0x14, idt64_trap_14)
50TRAP(0x15, idt64_trap_15)
51TRAP(0x16, idt64_trap_16)
52TRAP(0x17, idt64_trap_17)
53TRAP(0x18, idt64_trap_18)
54TRAP(0x19, idt64_trap_19)
55TRAP(0x1a, idt64_trap_1a)
56TRAP(0x1b, idt64_trap_1b)
57TRAP(0x1c, idt64_trap_1c)
58TRAP(0x1d, idt64_trap_1d)
59TRAP(0x1e, idt64_trap_1e)
60TRAP(0x1f, idt64_trap_1f)
b0d623f7
A
61
62INTERRUPT(0x20)
63INTERRUPT(0x21)
64INTERRUPT(0x22)
65INTERRUPT(0x23)
66INTERRUPT(0x24)
67INTERRUPT(0x25)
68INTERRUPT(0x26)
69INTERRUPT(0x27)
70INTERRUPT(0x28)
71INTERRUPT(0x29)
72INTERRUPT(0x2a)
73INTERRUPT(0x2b)
74INTERRUPT(0x2c)
75INTERRUPT(0x2d)
76INTERRUPT(0x2e)
77INTERRUPT(0x2f)
78
79INTERRUPT(0x30)
80INTERRUPT(0x31)
81INTERRUPT(0x32)
82INTERRUPT(0x33)
83INTERRUPT(0x34)
84INTERRUPT(0x35)
85INTERRUPT(0x36)
86INTERRUPT(0x37)
87INTERRUPT(0x38)
88INTERRUPT(0x39)
89INTERRUPT(0x3a)
90INTERRUPT(0x3b)
91INTERRUPT(0x3c)
92INTERRUPT(0x3d)
93INTERRUPT(0x3e)
94INTERRUPT(0x3f)
95
96INTERRUPT(0x40)
97INTERRUPT(0x41)
98INTERRUPT(0x42)
99INTERRUPT(0x43)
100INTERRUPT(0x44)
101INTERRUPT(0x45)
102INTERRUPT(0x46)
103INTERRUPT(0x47)
104INTERRUPT(0x48)
105INTERRUPT(0x49)
106INTERRUPT(0x4a)
107INTERRUPT(0x4b)
108INTERRUPT(0x4c)
109INTERRUPT(0x4d)
110INTERRUPT(0x4e)
111INTERRUPT(0x4f)
112
113INTERRUPT(0x50)
114INTERRUPT(0x51)
115INTERRUPT(0x52)
116INTERRUPT(0x53)
117INTERRUPT(0x54)
118INTERRUPT(0x55)
119INTERRUPT(0x56)
120INTERRUPT(0x57)
121INTERRUPT(0x58)
122INTERRUPT(0x59)
123INTERRUPT(0x5a)
124INTERRUPT(0x5b)
125INTERRUPT(0x5c)
126INTERRUPT(0x5d)
127INTERRUPT(0x5e)
128INTERRUPT(0x5f)
129
130INTERRUPT(0x60)
131INTERRUPT(0x61)
132INTERRUPT(0x62)
133INTERRUPT(0x63)
134INTERRUPT(0x64)
135INTERRUPT(0x65)
136INTERRUPT(0x66)
137INTERRUPT(0x67)
138INTERRUPT(0x68)
139INTERRUPT(0x69)
140INTERRUPT(0x6a)
141INTERRUPT(0x6b)
142INTERRUPT(0x6c)
143INTERRUPT(0x6d)
144INTERRUPT(0x6e)
145INTERRUPT(0x6f)
146
147INTERRUPT(0x70)
148INTERRUPT(0x71)
149INTERRUPT(0x72)
150INTERRUPT(0x73)
151INTERRUPT(0x74)
152INTERRUPT(0x75)
153INTERRUPT(0x76)
154INTERRUPT(0x77)
155INTERRUPT(0x78)
156INTERRUPT(0x79)
157INTERRUPT(0x7a)
158INTERRUPT(0x7b)
159INTERRUPT(0x7c)
160INTERRUPT(0x7d)
161INTERRUPT(0x7e)
6d2010ae 162USER_TRAP(0x7f, idt64_dtrace_ret) /* Required by dtrace "fasttrap" */
b0d623f7 163
0a7de745
A
164USER_TRAP_SPC(0x80, idt64_unix_scall)
165USER_TRAP_SPC(0x81, idt64_mach_scall)
166USER_TRAP_SPC(0x82, idt64_mdep_scall)
b0d623f7 167
316670eb 168INTERRUPT(0x83)
b0d623f7
A
169INTERRUPT(0x84)
170INTERRUPT(0x85)
171INTERRUPT(0x86)
172INTERRUPT(0x87)
173INTERRUPT(0x88)
174INTERRUPT(0x89)
175INTERRUPT(0x8a)
176INTERRUPT(0x8b)
177INTERRUPT(0x8c)
178INTERRUPT(0x8d)
179INTERRUPT(0x8e)
180INTERRUPT(0x8f)
181
182INTERRUPT(0x90)
183INTERRUPT(0x91)
184INTERRUPT(0x92)
185INTERRUPT(0x93)
186INTERRUPT(0x94)
187INTERRUPT(0x95)
188INTERRUPT(0x96)
189INTERRUPT(0x97)
190INTERRUPT(0x98)
191INTERRUPT(0x99)
192INTERRUPT(0x9a)
193INTERRUPT(0x9b)
194INTERRUPT(0x9c)
195INTERRUPT(0x9d)
196INTERRUPT(0x9e)
197INTERRUPT(0x9f)
198
199INTERRUPT(0xa0)
200INTERRUPT(0xa1)
201INTERRUPT(0xa2)
202INTERRUPT(0xa3)
203INTERRUPT(0xa4)
204INTERRUPT(0xa5)
205INTERRUPT(0xa6)
206INTERRUPT(0xa7)
207INTERRUPT(0xa8)
208INTERRUPT(0xa9)
209INTERRUPT(0xaa)
210INTERRUPT(0xab)
211INTERRUPT(0xac)
212INTERRUPT(0xad)
213INTERRUPT(0xae)
214INTERRUPT(0xaf)
215
216INTERRUPT(0xb0)
217INTERRUPT(0xb1)
218INTERRUPT(0xb2)
219INTERRUPT(0xb3)
220INTERRUPT(0xb4)
221INTERRUPT(0xb5)
222INTERRUPT(0xb6)
223INTERRUPT(0xb7)
224INTERRUPT(0xb8)
225INTERRUPT(0xb9)
226INTERRUPT(0xba)
227INTERRUPT(0xbb)
228INTERRUPT(0xbc)
229INTERRUPT(0xbd)
230INTERRUPT(0xbe)
231INTERRUPT(0xbf)
232
233INTERRUPT(0xc0)
234INTERRUPT(0xc1)
235INTERRUPT(0xc2)
236INTERRUPT(0xc3)
237INTERRUPT(0xc4)
238INTERRUPT(0xc5)
239INTERRUPT(0xc6)
240INTERRUPT(0xc7)
241INTERRUPT(0xc8)
242INTERRUPT(0xc9)
243INTERRUPT(0xca)
244INTERRUPT(0xcb)
245INTERRUPT(0xcc)
246INTERRUPT(0xcd)
247INTERRUPT(0xce)
248INTERRUPT(0xcf)
249
39236c6e 250/* Local APIC interrupt vectors */
b0d623f7
A
251INTERRUPT(0xd0)
252INTERRUPT(0xd1)
253INTERRUPT(0xd2)
254INTERRUPT(0xd3)
255INTERRUPT(0xd4)
256INTERRUPT(0xd5)
257INTERRUPT(0xd6)
258INTERRUPT(0xd7)
259INTERRUPT(0xd8)
260INTERRUPT(0xd9)
261INTERRUPT(0xda)
262INTERRUPT(0xdb)
263INTERRUPT(0xdc)
264INTERRUPT(0xdd)
265INTERRUPT(0xde)
266INTERRUPT(0xdf)
267
268INTERRUPT(0xe0)
269INTERRUPT(0xe1)
270INTERRUPT(0xe2)
271INTERRUPT(0xe3)
272INTERRUPT(0xe4)
273INTERRUPT(0xe5)
274INTERRUPT(0xe6)
275INTERRUPT(0xe7)
276INTERRUPT(0xe8)
277INTERRUPT(0xe9)
278INTERRUPT(0xea)
279INTERRUPT(0xeb)
280INTERRUPT(0xec)
281INTERRUPT(0xed)
282INTERRUPT(0xee)
283INTERRUPT(0xef)
284
285INTERRUPT(0xf0)
286INTERRUPT(0xf1)
287INTERRUPT(0xf2)
288INTERRUPT(0xf3)
289INTERRUPT(0xf4)
290INTERRUPT(0xf5)
291INTERRUPT(0xf6)
292INTERRUPT(0xf7)
293INTERRUPT(0xf8)
294INTERRUPT(0xf9)
295INTERRUPT(0xfa)
296INTERRUPT(0xfb)
297INTERRUPT(0xfc)
298INTERRUPT(0xfd)
299INTERRUPT(0xfe)
0a7de745 300TRAP(0xff, idt64_preempt)