| @@ -1,976 +1,976 @@ | | | @@ -1,976 +1,976 @@ |
1 | /* $NetBSD: vector.S,v 1.50 2017/07/16 14:02:48 cherry Exp $ */ | | 1 | /* $NetBSD: vector.S,v 1.51 2017/08/15 09:08:39 maxv Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1998, 2007, 2008 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 1998, 2007, 2008 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Charles M. Hannum and by Andrew Doran. | | 8 | * by Charles M. Hannum and by Andrew Doran. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
15 | * 2. Redistributions in binary form must reproduce the above copyright | | 15 | * 2. Redistributions in binary form must reproduce the above copyright |
16 | * notice, this list of conditions and the following disclaimer in the | | 16 | * notice, this list of conditions and the following disclaimer in the |
17 | * documentation and/or other materials provided with the distribution. | | 17 | * documentation and/or other materials provided with the distribution. |
18 | * | | 18 | * |
19 | * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | | 19 | * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS |
20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | | 20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
21 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | | 21 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
22 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | | 22 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS |
23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | | 23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
29 | * POSSIBILITY OF SUCH DAMAGE. | | 29 | * POSSIBILITY OF SUCH DAMAGE. |
30 | */ | | 30 | */ |
31 | | | 31 | |
32 | /* | | 32 | /* |
33 | * Copyright (c) 2001 Wasabi Systems, Inc. | | 33 | * Copyright (c) 2001 Wasabi Systems, Inc. |
34 | * All rights reserved. | | 34 | * All rights reserved. |
35 | * | | 35 | * |
36 | * Written by Frank van der Linden for Wasabi Systems, Inc. | | 36 | * Written by Frank van der Linden for Wasabi Systems, Inc. |
37 | * | | 37 | * |
38 | * Redistribution and use in source and binary forms, with or without | | 38 | * Redistribution and use in source and binary forms, with or without |
39 | * modification, are permitted provided that the following conditions | | 39 | * modification, are permitted provided that the following conditions |
40 | * are met: | | 40 | * are met: |
41 | * 1. Redistributions of source code must retain the above copyright | | 41 | * 1. Redistributions of source code must retain the above copyright |
42 | * notice, this list of conditions and the following disclaimer. | | 42 | * notice, this list of conditions and the following disclaimer. |
43 | * 2. Redistributions in binary form must reproduce the above copyright | | 43 | * 2. Redistributions in binary form must reproduce the above copyright |
44 | * notice, this list of conditions and the following disclaimer in the | | 44 | * notice, this list of conditions and the following disclaimer in the |
45 | * documentation and/or other materials provided with the distribution. | | 45 | * documentation and/or other materials provided with the distribution. |
46 | * 3. All advertising materials mentioning features or use of this software | | 46 | * 3. All advertising materials mentioning features or use of this software |
47 | * must display the following acknowledgement: | | 47 | * must display the following acknowledgement: |
48 | * This product includes software developed for the NetBSD Project by | | 48 | * This product includes software developed for the NetBSD Project by |
49 | * Wasabi Systems, Inc. | | 49 | * Wasabi Systems, Inc. |
50 | * 4. The name of Wasabi Systems, Inc. may not be used to endorse | | 50 | * 4. The name of Wasabi Systems, Inc. may not be used to endorse |
51 | * or promote products derived from this software without specific prior | | 51 | * or promote products derived from this software without specific prior |
52 | * written permission. | | 52 | * written permission. |
53 | * | | 53 | * |
54 | * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND | | 54 | * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND |
55 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | | 55 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
56 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | | 56 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
57 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC | | 57 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC |
58 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | | 58 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
59 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 59 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
60 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 60 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
61 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 61 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
62 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 62 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
63 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 63 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
64 | * POSSIBILITY OF SUCH DAMAGE. | | 64 | * POSSIBILITY OF SUCH DAMAGE. |
65 | */ | | 65 | */ |
66 | | | 66 | |
67 | #include <machine/asm.h> | | 67 | #include <machine/asm.h> |
68 | | | 68 | |
69 | #include "opt_ddb.h" | | 69 | #include "opt_ddb.h" |
70 | #include "opt_multiprocessor.h" | | 70 | #include "opt_multiprocessor.h" |
71 | #include "opt_xen.h" | | 71 | #include "opt_xen.h" |
72 | #include "opt_dtrace.h" | | 72 | #include "opt_dtrace.h" |
73 | | | 73 | |
74 | #define ALIGN_TEXT .align 16,0x90 | | 74 | #define ALIGN_TEXT .align 16,0x90 |
75 | | | 75 | |
76 | #include <machine/i8259.h> | | 76 | #include <machine/i8259.h> |
77 | #include <machine/i82093reg.h> | | 77 | #include <machine/i82093reg.h> |
78 | #include <machine/i82489reg.h> | | 78 | #include <machine/i82489reg.h> |
79 | #include <machine/frameasm.h> | | 79 | #include <machine/frameasm.h> |
80 | #include <machine/segments.h> | | 80 | #include <machine/segments.h> |
81 | #include <machine/trap.h> | | 81 | #include <machine/trap.h> |
82 | #include <machine/specialreg.h> | | 82 | #include <machine/specialreg.h> |
83 | | | 83 | |
84 | #include "ioapic.h" | | 84 | #include "ioapic.h" |
85 | #include "lapic.h" | | 85 | #include "lapic.h" |
86 | #include "assym.h" | | 86 | #include "assym.h" |
87 | | | 87 | |
88 | #include "amd64_trap.S" | | 88 | #include "amd64_trap.S" |
89 | | | 89 | |
90 | /*****************************************************************************/ | | 90 | /*****************************************************************************/ |
91 | | | 91 | |
92 | #define __HAVE_GENERIC_SOFT_INTERRUPTS /* XXX */ | | 92 | #define __HAVE_GENERIC_SOFT_INTERRUPTS /* XXX */ |
93 | | | 93 | |
94 | /* | | 94 | /* |
95 | * Macros for interrupt entry, call to handler, and exit. | | 95 | * Macros for interrupt entry, call to handler, and exit. |
96 | * | | 96 | * |
97 | * XXX | | 97 | * XXX |
98 | * The interrupt frame is set up to look like a trap frame. This may be a | | 98 | * The interrupt frame is set up to look like a trap frame. This may be a |
99 | * waste. The only handler which needs a frame is the clock handler, and it | | 99 | * waste. The only handler which needs a frame is the clock handler, and it |
100 | * only needs a few bits. Xdoreti() needs a trap frame for handling ASTs, but | | 100 | * only needs a few bits. Xdoreti() needs a trap frame for handling ASTs, but |
101 | * it could easily convert the frame on demand. | | 101 | * it could easily convert the frame on demand. |
102 | * | | 102 | * |
103 | * The direct costs of setting up a trap frame are two pushq's (error code and | | 103 | * The direct costs of setting up a trap frame are two pushq's (error code and |
104 | * trap number), an addl to get rid of these, and pushing and popping the | | 104 | * trap number), an addl to get rid of these, and pushing and popping the |
105 | * callee-saved registers %esi, %edi, %ebx, and %ebp twice. | | 105 | * callee-saved registers %esi, %edi, %ebx, and %ebp twice. |
106 | * | | 106 | * |
107 | * If the interrupt frame is made more flexible, INTR can push %eax first and | | 107 | * If the interrupt frame is made more flexible, INTR can push %eax first and |
108 | * decide the ipending case with less overhead, e.g., by avoiding loading the | | 108 | * decide the ipending case with less overhead, e.g., by avoiding loading the |
109 | * segment registers. | | 109 | * segment registers. |
110 | */ | | 110 | */ |
111 | | | 111 | |
112 | #if NLAPIC > 0 | | 112 | #if NLAPIC > 0 |
113 | #ifdef MULTIPROCESSOR | | 113 | #ifdef MULTIPROCESSOR |
114 | IDTVEC(recurse_lapic_ipi) | | 114 | IDTVEC(recurse_lapic_ipi) |
115 | INTR_RECURSE_HWFRAME | | 115 | INTR_RECURSE_HWFRAME |
116 | pushq $0 | | 116 | pushq $0 |
117 | pushq $T_ASTFLT | | 117 | pushq $T_ASTFLT |
118 | INTRENTRY | | 118 | INTRENTRY |
119 | jmp 1f | | 119 | jmp 1f |
120 | IDTVEC_END(recurse_lapic_ipi) | | 120 | IDTVEC_END(recurse_lapic_ipi) |
121 | IDTVEC(intr_x2apic_ipi) | | 121 | IDTVEC(intr_x2apic_ipi) |
122 | pushq $0 | | 122 | pushq $0 |
123 | pushq $T_ASTFLT | | 123 | pushq $T_ASTFLT |
124 | INTRENTRY | | 124 | INTRENTRY |
125 | movl $(MSR_X2APIC_BASE + MSR_X2APIC_EOI),%ecx | | 125 | movl $(MSR_X2APIC_BASE + MSR_X2APIC_EOI),%ecx |
126 | xorl %eax,%eax | | 126 | xorl %eax,%eax |
127 | xorl %edx,%edx | | 127 | xorl %edx,%edx |
128 | wrmsr | | 128 | wrmsr |
129 | movl CPUVAR(ILEVEL),%ebx | | 129 | movl CPUVAR(ILEVEL),%ebx |
130 | cmpl $IPL_HIGH,%ebx | | 130 | cmpl $IPL_HIGH,%ebx |
131 | jae 2f | | 131 | jae 2f |
132 | jmp 1f | | 132 | jmp 1f |
133 | IDTVEC_END(intr_x2apic_ipi) | | 133 | IDTVEC_END(intr_x2apic_ipi) |
134 | IDTVEC(intr_lapic_ipi) | | 134 | IDTVEC(intr_lapic_ipi) |
135 | pushq $0 | | 135 | pushq $0 |
136 | pushq $T_ASTFLT | | 136 | pushq $T_ASTFLT |
137 | INTRENTRY | | 137 | INTRENTRY |
138 | movq _C_LABEL(local_apic_va),%rbx | | 138 | movq _C_LABEL(local_apic_va),%rbx |
139 | movl $0,LAPIC_EOI(%rbx) | | 139 | movl $0,LAPIC_EOI(%rbx) |
140 | movl CPUVAR(ILEVEL),%ebx | | 140 | movl CPUVAR(ILEVEL),%ebx |
141 | cmpl $IPL_HIGH,%ebx | | 141 | cmpl $IPL_HIGH,%ebx |
142 | jae 2f | | 142 | jae 2f |
143 | IDTVEC_END(intr_lapic_ipi) | | 143 | IDTVEC_END(intr_lapic_ipi) |
144 | IDTVEC(resume_lapic_ipi) | | 144 | IDTVEC(resume_lapic_ipi) |
145 | 1: | | 145 | 1: |
146 | incl CPUVAR(IDEPTH) | | 146 | incl CPUVAR(IDEPTH) |
147 | movl $IPL_HIGH,CPUVAR(ILEVEL) | | 147 | movl $IPL_HIGH,CPUVAR(ILEVEL) |
148 | sti | | 148 | sti |
149 | pushq %rbx | | 149 | pushq %rbx |
150 | call _C_LABEL(x86_ipi_handler) | | 150 | call _C_LABEL(x86_ipi_handler) |
151 | jmp _C_LABEL(Xdoreti) | | 151 | jmp _C_LABEL(Xdoreti) |
152 | 2: | | 152 | 2: |
153 | orl $(1 << LIR_IPI),CPUVAR(IPENDING) | | 153 | orl $(1 << LIR_IPI),CPUVAR(IPENDING) |
154 | INTRFASTEXIT | | 154 | INTRFASTEXIT |
155 | IDTVEC_END(resume_lapic_ipi) | | 155 | IDTVEC_END(resume_lapic_ipi) |
156 | | | 156 | |
157 | #if defined(DDB) | | 157 | #if defined(DDB) |
158 | IDTVEC(intrddb) | | 158 | IDTVEC(intrddbipi) |
159 | 1: | | 159 | 1: |
160 | pushq $0 | | 160 | pushq $0 |
161 | pushq $T_BPTFLT | | 161 | pushq $T_BPTFLT |
162 | INTRENTRY | | 162 | INTRENTRY |
163 | movl $0xf,%eax | | 163 | movl $0xf,%eax |
164 | movq %rax,%cr8 | | 164 | movq %rax,%cr8 |
165 | movq _C_LABEL(local_apic_va),%rbx | | 165 | movq _C_LABEL(local_apic_va),%rbx |
166 | movl $0,LAPIC_EOI(%rbx) | | 166 | movl $0,LAPIC_EOI(%rbx) |
167 | sti | | 167 | sti |
168 | call _C_LABEL(ddb_ipi) | | 168 | call _C_LABEL(ddb_ipi) |
169 | xorl %eax,%eax | | 169 | xorl %eax,%eax |
170 | movq %rax,%cr8 | | 170 | movq %rax,%cr8 |
171 | INTRFASTEXIT | | 171 | INTRFASTEXIT |
172 | IDTVEC_END(intrddb) | | 172 | IDTVEC_END(intrddbipi) |
173 | | | 173 | |
174 | IDTVEC(x2apic_intrddb) | | 174 | IDTVEC(x2apic_intrddbipi) |
175 | 1: | | 175 | 1: |
176 | pushq $0 | | 176 | pushq $0 |
177 | pushq $T_BPTFLT | | 177 | pushq $T_BPTFLT |
178 | INTRENTRY | | 178 | INTRENTRY |
179 | movl $0xf,%eax | | 179 | movl $0xf,%eax |
180 | movq %rax,%cr8 | | 180 | movq %rax,%cr8 |
181 | movl $(MSR_X2APIC_BASE + MSR_X2APIC_EOI),%ecx | | 181 | movl $(MSR_X2APIC_BASE + MSR_X2APIC_EOI),%ecx |
182 | xorl %eax,%eax | | 182 | xorl %eax,%eax |
183 | xorl %edx,%edx | | 183 | xorl %edx,%edx |
184 | wrmsr | | 184 | wrmsr |
185 | sti | | 185 | sti |
186 | call _C_LABEL(ddb_ipi) | | 186 | call _C_LABEL(ddb_ipi) |
187 | xorl %eax,%eax | | 187 | xorl %eax,%eax |
188 | movq %rax,%cr8 | | 188 | movq %rax,%cr8 |
189 | INTRFASTEXIT | | 189 | INTRFASTEXIT |
190 | IDTVEC_END(x2apic_intrddb) | | 190 | IDTVEC_END(x2apic_intrddbipi) |
191 | #endif /* DDB */ | | 191 | #endif /* DDB */ |
192 | #endif /* MULTIPROCESSOR */ | | 192 | #endif /* MULTIPROCESSOR */ |
193 | | | 193 | |
194 | /* | | 194 | /* |
195 | * Interrupt from the local APIC timer. | | 195 | * Interrupt from the local APIC timer. |
196 | */ | | 196 | */ |
197 | IDTVEC(recurse_lapic_ltimer) | | 197 | IDTVEC(recurse_lapic_ltimer) |
198 | INTR_RECURSE_HWFRAME | | 198 | INTR_RECURSE_HWFRAME |
199 | pushq $0 | | 199 | pushq $0 |
200 | pushq $T_ASTFLT | | 200 | pushq $T_ASTFLT |
201 | INTRENTRY | | 201 | INTRENTRY |
202 | jmp 1f | | 202 | jmp 1f |
203 | IDTVEC_END(recurse_lapic_ltimer) | | 203 | IDTVEC_END(recurse_lapic_ltimer) |
204 | IDTVEC(intr_x2apic_ltimer) | | 204 | IDTVEC(intr_x2apic_ltimer) |
205 | pushq $0 | | 205 | pushq $0 |
206 | pushq $T_ASTFLT | | 206 | pushq $T_ASTFLT |
207 | INTRENTRY | | 207 | INTRENTRY |
208 | movl $(MSR_X2APIC_BASE + MSR_X2APIC_EOI),%ecx | | 208 | movl $(MSR_X2APIC_BASE + MSR_X2APIC_EOI),%ecx |
209 | xorl %eax,%eax | | 209 | xorl %eax,%eax |
210 | xorl %edx,%edx | | 210 | xorl %edx,%edx |
211 | wrmsr | | 211 | wrmsr |
212 | movl CPUVAR(ILEVEL),%ebx | | 212 | movl CPUVAR(ILEVEL),%ebx |
213 | cmpl $IPL_CLOCK,%ebx | | 213 | cmpl $IPL_CLOCK,%ebx |
214 | jae 2f | | 214 | jae 2f |
215 | jmp 1f | | 215 | jmp 1f |
216 | IDTVEC_END(intr_x2apic_ltimer) | | 216 | IDTVEC_END(intr_x2apic_ltimer) |
217 | IDTVEC(intr_lapic_ltimer) | | 217 | IDTVEC(intr_lapic_ltimer) |
218 | pushq $0 | | 218 | pushq $0 |
219 | pushq $T_ASTFLT | | 219 | pushq $T_ASTFLT |
220 | INTRENTRY | | 220 | INTRENTRY |
221 | movq _C_LABEL(local_apic_va),%rbx | | 221 | movq _C_LABEL(local_apic_va),%rbx |
222 | movl $0,LAPIC_EOI(%rbx) | | 222 | movl $0,LAPIC_EOI(%rbx) |
223 | movl CPUVAR(ILEVEL),%ebx | | 223 | movl CPUVAR(ILEVEL),%ebx |
224 | cmpl $IPL_CLOCK,%ebx | | 224 | cmpl $IPL_CLOCK,%ebx |
225 | jae 2f | | 225 | jae 2f |
226 | IDTVEC_END(intr_lapic_ltimer) | | 226 | IDTVEC_END(intr_lapic_ltimer) |
227 | IDTVEC(resume_lapic_ltimer) | | 227 | IDTVEC(resume_lapic_ltimer) |
228 | 1: | | 228 | 1: |
229 | incl CPUVAR(IDEPTH) | | 229 | incl CPUVAR(IDEPTH) |
230 | movl $IPL_CLOCK,CPUVAR(ILEVEL) | | 230 | movl $IPL_CLOCK,CPUVAR(ILEVEL) |
231 | sti | | 231 | sti |
232 | pushq %rbx | | 232 | pushq %rbx |
233 | movq %rsp,%rsi | | 233 | movq %rsp,%rsi |
234 | xorq %rdi,%rdi | | 234 | xorq %rdi,%rdi |
235 | call _C_LABEL(lapic_clockintr) | | 235 | call _C_LABEL(lapic_clockintr) |
236 | jmp _C_LABEL(Xdoreti) | | 236 | jmp _C_LABEL(Xdoreti) |
237 | 2: | | 237 | 2: |
238 | orl $(1 << LIR_TIMER),CPUVAR(IPENDING) | | 238 | orl $(1 << LIR_TIMER),CPUVAR(IPENDING) |
239 | INTRFASTEXIT | | 239 | INTRFASTEXIT |
240 | IDTVEC_END(resume_lapic_ltimer) | | 240 | IDTVEC_END(resume_lapic_ltimer) |
241 | #endif /* NLAPIC > 0 */ | | 241 | #endif /* NLAPIC > 0 */ |
242 | | | 242 | |
243 | #ifndef XEN | | 243 | #ifndef XEN |
244 | /* | | 244 | /* |
245 | * TLB shootdown handler. | | 245 | * TLB shootdown handler. |
246 | */ | | 246 | */ |
247 | IDTVEC(intr_lapic_tlb) | | 247 | IDTVEC(intr_lapic_tlb) |
248 | pushq $0 | | 248 | pushq $0 |
249 | pushq $T_ASTFLT | | 249 | pushq $T_ASTFLT |
250 | INTRENTRY | | 250 | INTRENTRY |
251 | movq _C_LABEL(local_apic_va),%rax | | 251 | movq _C_LABEL(local_apic_va),%rax |
252 | movl $0,LAPIC_EOI(%rax) | | 252 | movl $0,LAPIC_EOI(%rax) |
253 | callq _C_LABEL(pmap_tlb_intr) | | 253 | callq _C_LABEL(pmap_tlb_intr) |
254 | INTRFASTEXIT | | 254 | INTRFASTEXIT |
255 | IDTVEC_END(intr_lapic_tlb) | | 255 | IDTVEC_END(intr_lapic_tlb) |
256 | | | 256 | |
257 | IDTVEC(intr_x2apic_tlb) | | 257 | IDTVEC(intr_x2apic_tlb) |
258 | pushq $0 | | 258 | pushq $0 |
259 | pushq $T_ASTFLT | | 259 | pushq $T_ASTFLT |
260 | INTRENTRY | | 260 | INTRENTRY |
261 | movl $(MSR_X2APIC_BASE + MSR_X2APIC_EOI),%ecx | | 261 | movl $(MSR_X2APIC_BASE + MSR_X2APIC_EOI),%ecx |
262 | xorl %eax,%eax | | 262 | xorl %eax,%eax |
263 | xorl %edx,%edx | | 263 | xorl %edx,%edx |
264 | wrmsr | | 264 | wrmsr |
265 | callq _C_LABEL(pmap_tlb_intr) | | 265 | callq _C_LABEL(pmap_tlb_intr) |
266 | INTRFASTEXIT | | 266 | INTRFASTEXIT |
267 | IDTVEC_END(intr_x2apic_tlb) | | 267 | IDTVEC_END(intr_x2apic_tlb) |
268 | | | 268 | |
269 | #endif /* !XEN */ | | 269 | #endif /* !XEN */ |
270 | | | 270 | |
271 | #define voidop(num) | | 271 | #define voidop(num) |
272 | | | 272 | |
273 | #ifndef XEN | | 273 | #ifndef XEN |
274 | | | 274 | |
275 | /* | | 275 | /* |
276 | * This macro defines the generic stub code. Its arguments modifiy it | | 276 | * This macro defines the generic stub code. Its arguments modifiy it |
277 | * for specific PICs. | | 277 | * for specific PICs. |
278 | */ | | 278 | */ |
279 | | | 279 | |
280 | #define INTRSTUB(name, num, early_ack, late_ack, mask, unmask, level_mask) \ | | 280 | #define INTRSTUB(name, num, early_ack, late_ack, mask, unmask, level_mask) \ |
281 | IDTVEC(recurse_ ## name ## num) ;\ | | 281 | IDTVEC(recurse_ ## name ## num) ;\ |
282 | INTR_RECURSE_HWFRAME ;\ | | 282 | INTR_RECURSE_HWFRAME ;\ |
283 | subq $8,%rsp ;\ | | 283 | subq $8,%rsp ;\ |
284 | pushq $T_ASTFLT /* trap # for doing ASTs */ ;\ | | 284 | pushq $T_ASTFLT /* trap # for doing ASTs */ ;\ |
285 | INTRENTRY ;\ | | 285 | INTRENTRY ;\ |
286 | IDTVEC(resume_ ## name ## num) \ | | 286 | IDTVEC(resume_ ## name ## num) \ |
287 | movq $IREENT_MAGIC,TF_ERR(%rsp) ;\ | | 287 | movq $IREENT_MAGIC,TF_ERR(%rsp) ;\ |
288 | movl %ebx,%r13d ;\ | | 288 | movl %ebx,%r13d ;\ |
289 | movq CPUVAR(ISOURCES) + (num) * 8,%r14 ;\ | | 289 | movq CPUVAR(ISOURCES) + (num) * 8,%r14 ;\ |
290 | movl IS_MAXLEVEL(%r14),%ebx ;\ | | 290 | movl IS_MAXLEVEL(%r14),%ebx ;\ |
291 | jmp 1f ;\ | | 291 | jmp 1f ;\ |
292 | IDTVEC(intr_ ## name ## num) ;\ | | 292 | IDTVEC(intr_ ## name ## num) ;\ |
293 | pushq $0 /* dummy error code */ ;\ | | 293 | pushq $0 /* dummy error code */ ;\ |
294 | pushq $T_ASTFLT /* trap # for doing ASTs */ ;\ | | 294 | pushq $T_ASTFLT /* trap # for doing ASTs */ ;\ |
295 | INTRENTRY ;\ | | 295 | INTRENTRY ;\ |
296 | movq CPUVAR(ISOURCES) + (num) * 8,%r14 ;\ | | 296 | movq CPUVAR(ISOURCES) + (num) * 8,%r14 ;\ |
297 | mask(num) /* mask it in hardware */ ;\ | | 297 | mask(num) /* mask it in hardware */ ;\ |
298 | early_ack(num) /* and allow other intrs */ ;\ | | 298 | early_ack(num) /* and allow other intrs */ ;\ |
299 | testq %r14,%r14 ;\ | | 299 | testq %r14,%r14 ;\ |
300 | jz 9f /* stray */ ;\ | | 300 | jz 9f /* stray */ ;\ |
301 | movl IS_MAXLEVEL(%r14),%ebx ;\ | | 301 | movl IS_MAXLEVEL(%r14),%ebx ;\ |
302 | movl CPUVAR(ILEVEL),%r13d ;\ | | 302 | movl CPUVAR(ILEVEL),%r13d ;\ |
303 | cmpl %ebx,%r13d ;\ | | 303 | cmpl %ebx,%r13d ;\ |
304 | jae 10f /* currently masked; hold it */ ;\ | | 304 | jae 10f /* currently masked; hold it */ ;\ |
305 | incq CPUVAR(NINTR) /* statistical info */ ;\ | | 305 | incq CPUVAR(NINTR) /* statistical info */ ;\ |
306 | incq IS_EVCNT(%r14) ;\ | | 306 | incq IS_EVCNT(%r14) ;\ |
307 | 1: \ | | 307 | 1: \ |
308 | pushq %r13 /* save for Xdoreti */ ;\ | | 308 | pushq %r13 /* save for Xdoreti */ ;\ |
309 | movl %ebx,CPUVAR(ILEVEL) ;\ | | 309 | movl %ebx,CPUVAR(ILEVEL) ;\ |
310 | sti ;\ | | 310 | sti ;\ |
311 | incl CPUVAR(IDEPTH) ;\ | | 311 | incl CPUVAR(IDEPTH) ;\ |
312 | movq IS_HANDLERS(%r14),%rbx ;\ | | 312 | movq IS_HANDLERS(%r14),%rbx ;\ |
313 | 6: \ | | 313 | 6: \ |
314 | movl IH_LEVEL(%rbx),%r12d ;\ | | 314 | movl IH_LEVEL(%rbx),%r12d ;\ |
315 | cmpl %r13d,%r12d ;\ | | 315 | cmpl %r13d,%r12d ;\ |
316 | jle 7f ;\ | | 316 | jle 7f ;\ |
317 | movq %rsp,%rsi ;\ | | 317 | movq %rsp,%rsi ;\ |
318 | movq IH_ARG(%rbx),%rdi ;\ | | 318 | movq IH_ARG(%rbx),%rdi ;\ |
319 | movl %r12d,CPUVAR(ILEVEL) ;\ | | 319 | movl %r12d,CPUVAR(ILEVEL) ;\ |
320 | call *IH_FUN(%rbx) /* call it */ ;\ | | 320 | call *IH_FUN(%rbx) /* call it */ ;\ |
321 | movq IH_NEXT(%rbx),%rbx /* next handler in chain */ ;\ | | 321 | movq IH_NEXT(%rbx),%rbx /* next handler in chain */ ;\ |
322 | testq %rbx,%rbx ;\ | | 322 | testq %rbx,%rbx ;\ |
323 | jnz 6b ;\ | | 323 | jnz 6b ;\ |
324 | 5: \ | | 324 | 5: \ |
325 | cli ;\ | | 325 | cli ;\ |
326 | unmask(num) /* unmask it in hardware */ ;\ | | 326 | unmask(num) /* unmask it in hardware */ ;\ |
327 | late_ack(num) ;\ | | 327 | late_ack(num) ;\ |
328 | sti ;\ | | 328 | sti ;\ |
329 | jmp _C_LABEL(Xdoreti) /* lower spl and do ASTs */ ;\ | | 329 | jmp _C_LABEL(Xdoreti) /* lower spl and do ASTs */ ;\ |
330 | 7: \ | | 330 | 7: \ |
331 | cli ;\ | | 331 | cli ;\ |
332 | orl $(1 << num),CPUVAR(IPENDING) ;\ | | 332 | orl $(1 << num),CPUVAR(IPENDING) ;\ |
333 | level_mask(num) ;\ | | 333 | level_mask(num) ;\ |
334 | late_ack(num) ;\ | | 334 | late_ack(num) ;\ |
335 | sti ;\ | | 335 | sti ;\ |
336 | jmp _C_LABEL(Xdoreti) /* lower spl and do ASTs */ ;\ | | 336 | jmp _C_LABEL(Xdoreti) /* lower spl and do ASTs */ ;\ |
337 | 10: \ | | 337 | 10: \ |
338 | cli ;\ | | 338 | cli ;\ |
339 | orl $(1 << num),CPUVAR(IPENDING) ;\ | | 339 | orl $(1 << num),CPUVAR(IPENDING) ;\ |
340 | level_mask(num) ;\ | | 340 | level_mask(num) ;\ |
341 | late_ack(num) ;\ | | 341 | late_ack(num) ;\ |
342 | INTRFASTEXIT ;\ | | 342 | INTRFASTEXIT ;\ |
343 | 9: \ | | 343 | 9: \ |
344 | unmask(num) ;\ | | 344 | unmask(num) ;\ |
345 | late_ack(num) ;\ | | 345 | late_ack(num) ;\ |
346 | INTRFASTEXIT | | 346 | INTRFASTEXIT |
347 | | | 347 | |
348 | #define ICUADDR IO_ICU1 | | 348 | #define ICUADDR IO_ICU1 |
349 | | | 349 | |
350 | INTRSTUB(legacy,0,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, | | 350 | INTRSTUB(legacy,0,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, |
351 | voidop) | | 351 | voidop) |
352 | INTRSTUB(legacy,1,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, | | 352 | INTRSTUB(legacy,1,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, |
353 | voidop) | | 353 | voidop) |
354 | INTRSTUB(legacy,2,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, | | 354 | INTRSTUB(legacy,2,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, |
355 | voidop) | | 355 | voidop) |
356 | INTRSTUB(legacy,3,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, | | 356 | INTRSTUB(legacy,3,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, |
357 | voidop) | | 357 | voidop) |
358 | INTRSTUB(legacy,4,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, | | 358 | INTRSTUB(legacy,4,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, |
359 | voidop) | | 359 | voidop) |
360 | INTRSTUB(legacy,5,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, | | 360 | INTRSTUB(legacy,5,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, |
361 | voidop) | | 361 | voidop) |
362 | INTRSTUB(legacy,6,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, | | 362 | INTRSTUB(legacy,6,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, |
363 | voidop) | | 363 | voidop) |
364 | INTRSTUB(legacy,7,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, | | 364 | INTRSTUB(legacy,7,i8259_asm_ack1,voidop,i8259_asm_mask,i8259_asm_unmask, |
365 | voidop) | | 365 | voidop) |
366 | #undef ICUADDR | | 366 | #undef ICUADDR |
367 | #define ICUADDR IO_ICU2 | | 367 | #define ICUADDR IO_ICU2 |
368 | | | 368 | |
369 | INTRSTUB(legacy,8,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, | | 369 | INTRSTUB(legacy,8,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, |
370 | voidop) | | 370 | voidop) |
371 | INTRSTUB(legacy,9,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, | | 371 | INTRSTUB(legacy,9,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, |
372 | voidop) | | 372 | voidop) |
373 | INTRSTUB(legacy,10,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, | | 373 | INTRSTUB(legacy,10,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, |
374 | voidop) | | 374 | voidop) |
375 | INTRSTUB(legacy,11,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, | | 375 | INTRSTUB(legacy,11,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, |
376 | voidop) | | 376 | voidop) |
377 | INTRSTUB(legacy,12,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, | | 377 | INTRSTUB(legacy,12,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, |
378 | voidop) | | 378 | voidop) |
379 | INTRSTUB(legacy,13,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, | | 379 | INTRSTUB(legacy,13,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, |
380 | voidop) | | 380 | voidop) |
381 | INTRSTUB(legacy,14,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, | | 381 | INTRSTUB(legacy,14,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, |
382 | voidop) | | 382 | voidop) |
383 | INTRSTUB(legacy,15,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, | | 383 | INTRSTUB(legacy,15,i8259_asm_ack2,voidop,i8259_asm_mask,i8259_asm_unmask, |
384 | voidop) | | 384 | voidop) |
385 | | | 385 | |
386 | #if NIOAPIC > 0 | | 386 | #if NIOAPIC > 0 |
387 | | | 387 | |
388 | INTRSTUB(ioapic_edge,0,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 388 | INTRSTUB(ioapic_edge,0,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
389 | INTRSTUB(ioapic_edge,1,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 389 | INTRSTUB(ioapic_edge,1,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
390 | INTRSTUB(ioapic_edge,2,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 390 | INTRSTUB(ioapic_edge,2,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
391 | INTRSTUB(ioapic_edge,3,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 391 | INTRSTUB(ioapic_edge,3,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
392 | INTRSTUB(ioapic_edge,4,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 392 | INTRSTUB(ioapic_edge,4,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
393 | INTRSTUB(ioapic_edge,5,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 393 | INTRSTUB(ioapic_edge,5,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
394 | INTRSTUB(ioapic_edge,6,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 394 | INTRSTUB(ioapic_edge,6,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
395 | INTRSTUB(ioapic_edge,7,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 395 | INTRSTUB(ioapic_edge,7,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
396 | INTRSTUB(ioapic_edge,8,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 396 | INTRSTUB(ioapic_edge,8,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
397 | INTRSTUB(ioapic_edge,9,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 397 | INTRSTUB(ioapic_edge,9,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
398 | INTRSTUB(ioapic_edge,10,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 398 | INTRSTUB(ioapic_edge,10,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
399 | INTRSTUB(ioapic_edge,11,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 399 | INTRSTUB(ioapic_edge,11,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
400 | INTRSTUB(ioapic_edge,12,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 400 | INTRSTUB(ioapic_edge,12,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
401 | INTRSTUB(ioapic_edge,13,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 401 | INTRSTUB(ioapic_edge,13,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
402 | INTRSTUB(ioapic_edge,14,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 402 | INTRSTUB(ioapic_edge,14,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
403 | INTRSTUB(ioapic_edge,15,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 403 | INTRSTUB(ioapic_edge,15,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
404 | INTRSTUB(ioapic_edge,16,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 404 | INTRSTUB(ioapic_edge,16,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
405 | INTRSTUB(ioapic_edge,17,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 405 | INTRSTUB(ioapic_edge,17,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
406 | INTRSTUB(ioapic_edge,18,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 406 | INTRSTUB(ioapic_edge,18,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
407 | INTRSTUB(ioapic_edge,19,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 407 | INTRSTUB(ioapic_edge,19,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
408 | INTRSTUB(ioapic_edge,20,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 408 | INTRSTUB(ioapic_edge,20,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
409 | INTRSTUB(ioapic_edge,21,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 409 | INTRSTUB(ioapic_edge,21,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
410 | INTRSTUB(ioapic_edge,22,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 410 | INTRSTUB(ioapic_edge,22,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
411 | INTRSTUB(ioapic_edge,23,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 411 | INTRSTUB(ioapic_edge,23,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
412 | INTRSTUB(ioapic_edge,24,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 412 | INTRSTUB(ioapic_edge,24,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
413 | INTRSTUB(ioapic_edge,25,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 413 | INTRSTUB(ioapic_edge,25,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
414 | INTRSTUB(ioapic_edge,26,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 414 | INTRSTUB(ioapic_edge,26,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
415 | INTRSTUB(ioapic_edge,27,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 415 | INTRSTUB(ioapic_edge,27,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
416 | INTRSTUB(ioapic_edge,28,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 416 | INTRSTUB(ioapic_edge,28,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
417 | INTRSTUB(ioapic_edge,29,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 417 | INTRSTUB(ioapic_edge,29,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
418 | INTRSTUB(ioapic_edge,30,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 418 | INTRSTUB(ioapic_edge,30,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
419 | INTRSTUB(ioapic_edge,31,voidop,ioapic_asm_ack,voidop,voidop,voidop) | | 419 | INTRSTUB(ioapic_edge,31,voidop,ioapic_asm_ack,voidop,voidop,voidop) |
420 | | | 420 | |
421 | INTRSTUB(ioapic_level,0,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 421 | INTRSTUB(ioapic_level,0,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
422 | INTRSTUB(ioapic_level,1,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 422 | INTRSTUB(ioapic_level,1,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
423 | INTRSTUB(ioapic_level,2,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 423 | INTRSTUB(ioapic_level,2,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
424 | INTRSTUB(ioapic_level,3,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 424 | INTRSTUB(ioapic_level,3,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
425 | INTRSTUB(ioapic_level,4,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 425 | INTRSTUB(ioapic_level,4,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
426 | INTRSTUB(ioapic_level,5,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 426 | INTRSTUB(ioapic_level,5,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
427 | INTRSTUB(ioapic_level,6,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 427 | INTRSTUB(ioapic_level,6,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
428 | INTRSTUB(ioapic_level,7,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 428 | INTRSTUB(ioapic_level,7,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
429 | INTRSTUB(ioapic_level,8,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 429 | INTRSTUB(ioapic_level,8,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
430 | INTRSTUB(ioapic_level,9,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 430 | INTRSTUB(ioapic_level,9,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
431 | INTRSTUB(ioapic_level,10,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 431 | INTRSTUB(ioapic_level,10,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
432 | INTRSTUB(ioapic_level,11,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 432 | INTRSTUB(ioapic_level,11,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
433 | INTRSTUB(ioapic_level,12,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 433 | INTRSTUB(ioapic_level,12,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
434 | INTRSTUB(ioapic_level,13,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 434 | INTRSTUB(ioapic_level,13,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
435 | INTRSTUB(ioapic_level,14,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 435 | INTRSTUB(ioapic_level,14,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
436 | INTRSTUB(ioapic_level,15,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 436 | INTRSTUB(ioapic_level,15,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
437 | INTRSTUB(ioapic_level,16,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 437 | INTRSTUB(ioapic_level,16,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
438 | INTRSTUB(ioapic_level,17,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 438 | INTRSTUB(ioapic_level,17,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
439 | INTRSTUB(ioapic_level,18,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 439 | INTRSTUB(ioapic_level,18,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
440 | INTRSTUB(ioapic_level,19,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 440 | INTRSTUB(ioapic_level,19,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
441 | INTRSTUB(ioapic_level,20,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 441 | INTRSTUB(ioapic_level,20,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
442 | INTRSTUB(ioapic_level,21,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 442 | INTRSTUB(ioapic_level,21,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
443 | INTRSTUB(ioapic_level,22,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 443 | INTRSTUB(ioapic_level,22,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
444 | INTRSTUB(ioapic_level,23,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 444 | INTRSTUB(ioapic_level,23,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
445 | INTRSTUB(ioapic_level,24,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 445 | INTRSTUB(ioapic_level,24,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
446 | INTRSTUB(ioapic_level,25,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 446 | INTRSTUB(ioapic_level,25,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
447 | INTRSTUB(ioapic_level,26,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 447 | INTRSTUB(ioapic_level,26,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
448 | INTRSTUB(ioapic_level,27,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 448 | INTRSTUB(ioapic_level,27,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
449 | INTRSTUB(ioapic_level,28,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 449 | INTRSTUB(ioapic_level,28,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
450 | INTRSTUB(ioapic_level,29,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 450 | INTRSTUB(ioapic_level,29,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
451 | INTRSTUB(ioapic_level,30,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 451 | INTRSTUB(ioapic_level,30,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
452 | INTRSTUB(ioapic_level,31,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 452 | INTRSTUB(ioapic_level,31,voidop,ioapic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
453 | | | 453 | |
454 | INTRSTUB(x2apic_edge,0,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 454 | INTRSTUB(x2apic_edge,0,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
455 | INTRSTUB(x2apic_edge,1,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 455 | INTRSTUB(x2apic_edge,1,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
456 | INTRSTUB(x2apic_edge,2,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 456 | INTRSTUB(x2apic_edge,2,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
457 | INTRSTUB(x2apic_edge,3,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 457 | INTRSTUB(x2apic_edge,3,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
458 | INTRSTUB(x2apic_edge,4,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 458 | INTRSTUB(x2apic_edge,4,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
459 | INTRSTUB(x2apic_edge,5,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 459 | INTRSTUB(x2apic_edge,5,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
460 | INTRSTUB(x2apic_edge,6,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 460 | INTRSTUB(x2apic_edge,6,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
461 | INTRSTUB(x2apic_edge,7,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 461 | INTRSTUB(x2apic_edge,7,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
462 | INTRSTUB(x2apic_edge,8,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 462 | INTRSTUB(x2apic_edge,8,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
463 | INTRSTUB(x2apic_edge,9,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 463 | INTRSTUB(x2apic_edge,9,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
464 | INTRSTUB(x2apic_edge,10,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 464 | INTRSTUB(x2apic_edge,10,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
465 | INTRSTUB(x2apic_edge,11,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 465 | INTRSTUB(x2apic_edge,11,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
466 | INTRSTUB(x2apic_edge,12,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 466 | INTRSTUB(x2apic_edge,12,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
467 | INTRSTUB(x2apic_edge,13,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 467 | INTRSTUB(x2apic_edge,13,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
468 | INTRSTUB(x2apic_edge,14,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 468 | INTRSTUB(x2apic_edge,14,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
469 | INTRSTUB(x2apic_edge,15,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 469 | INTRSTUB(x2apic_edge,15,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
470 | INTRSTUB(x2apic_edge,16,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 470 | INTRSTUB(x2apic_edge,16,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
471 | INTRSTUB(x2apic_edge,17,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 471 | INTRSTUB(x2apic_edge,17,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
472 | INTRSTUB(x2apic_edge,18,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 472 | INTRSTUB(x2apic_edge,18,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
473 | INTRSTUB(x2apic_edge,19,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 473 | INTRSTUB(x2apic_edge,19,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
474 | INTRSTUB(x2apic_edge,20,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 474 | INTRSTUB(x2apic_edge,20,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
475 | INTRSTUB(x2apic_edge,21,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 475 | INTRSTUB(x2apic_edge,21,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
476 | INTRSTUB(x2apic_edge,22,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 476 | INTRSTUB(x2apic_edge,22,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
477 | INTRSTUB(x2apic_edge,23,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 477 | INTRSTUB(x2apic_edge,23,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
478 | INTRSTUB(x2apic_edge,24,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 478 | INTRSTUB(x2apic_edge,24,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
479 | INTRSTUB(x2apic_edge,25,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 479 | INTRSTUB(x2apic_edge,25,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
480 | INTRSTUB(x2apic_edge,26,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 480 | INTRSTUB(x2apic_edge,26,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
481 | INTRSTUB(x2apic_edge,27,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 481 | INTRSTUB(x2apic_edge,27,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
482 | INTRSTUB(x2apic_edge,28,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 482 | INTRSTUB(x2apic_edge,28,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
483 | INTRSTUB(x2apic_edge,29,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 483 | INTRSTUB(x2apic_edge,29,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
484 | INTRSTUB(x2apic_edge,30,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 484 | INTRSTUB(x2apic_edge,30,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
485 | INTRSTUB(x2apic_edge,31,voidop,x2apic_asm_ack,voidop,voidop,voidop) | | 485 | INTRSTUB(x2apic_edge,31,voidop,x2apic_asm_ack,voidop,voidop,voidop) |
486 | | | 486 | |
487 | INTRSTUB(x2apic_level,0,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 487 | INTRSTUB(x2apic_level,0,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
488 | INTRSTUB(x2apic_level,1,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 488 | INTRSTUB(x2apic_level,1,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
489 | INTRSTUB(x2apic_level,2,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 489 | INTRSTUB(x2apic_level,2,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
490 | INTRSTUB(x2apic_level,3,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 490 | INTRSTUB(x2apic_level,3,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
491 | INTRSTUB(x2apic_level,4,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 491 | INTRSTUB(x2apic_level,4,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
492 | INTRSTUB(x2apic_level,5,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 492 | INTRSTUB(x2apic_level,5,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
493 | INTRSTUB(x2apic_level,6,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 493 | INTRSTUB(x2apic_level,6,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
494 | INTRSTUB(x2apic_level,7,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 494 | INTRSTUB(x2apic_level,7,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
495 | INTRSTUB(x2apic_level,8,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 495 | INTRSTUB(x2apic_level,8,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
496 | INTRSTUB(x2apic_level,9,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 496 | INTRSTUB(x2apic_level,9,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
497 | INTRSTUB(x2apic_level,10,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 497 | INTRSTUB(x2apic_level,10,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
498 | INTRSTUB(x2apic_level,11,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 498 | INTRSTUB(x2apic_level,11,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
499 | INTRSTUB(x2apic_level,12,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 499 | INTRSTUB(x2apic_level,12,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
500 | INTRSTUB(x2apic_level,13,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 500 | INTRSTUB(x2apic_level,13,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
501 | INTRSTUB(x2apic_level,14,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 501 | INTRSTUB(x2apic_level,14,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
502 | INTRSTUB(x2apic_level,15,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 502 | INTRSTUB(x2apic_level,15,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
503 | INTRSTUB(x2apic_level,16,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 503 | INTRSTUB(x2apic_level,16,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
504 | INTRSTUB(x2apic_level,17,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 504 | INTRSTUB(x2apic_level,17,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
505 | INTRSTUB(x2apic_level,18,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 505 | INTRSTUB(x2apic_level,18,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
506 | INTRSTUB(x2apic_level,19,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 506 | INTRSTUB(x2apic_level,19,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
507 | INTRSTUB(x2apic_level,20,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 507 | INTRSTUB(x2apic_level,20,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
508 | INTRSTUB(x2apic_level,21,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 508 | INTRSTUB(x2apic_level,21,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
509 | INTRSTUB(x2apic_level,22,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 509 | INTRSTUB(x2apic_level,22,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
510 | INTRSTUB(x2apic_level,23,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 510 | INTRSTUB(x2apic_level,23,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
511 | INTRSTUB(x2apic_level,24,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 511 | INTRSTUB(x2apic_level,24,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
512 | INTRSTUB(x2apic_level,25,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 512 | INTRSTUB(x2apic_level,25,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
513 | INTRSTUB(x2apic_level,26,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 513 | INTRSTUB(x2apic_level,26,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
514 | INTRSTUB(x2apic_level,27,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 514 | INTRSTUB(x2apic_level,27,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
515 | INTRSTUB(x2apic_level,28,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 515 | INTRSTUB(x2apic_level,28,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
516 | INTRSTUB(x2apic_level,29,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 516 | INTRSTUB(x2apic_level,29,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
517 | INTRSTUB(x2apic_level,30,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 517 | INTRSTUB(x2apic_level,30,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
518 | INTRSTUB(x2apic_level,31,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) | | 518 | INTRSTUB(x2apic_level,31,voidop,x2apic_asm_ack,voidop,ioapic_unmask,ioapic_mask) |
519 | | | 519 | |
520 | #endif | | 520 | #endif |
521 | | | 521 | |
522 | .type _C_LABEL(i8259_stubs), @object | | 522 | .type _C_LABEL(i8259_stubs), @object |
523 | LABEL(i8259_stubs) | | 523 | LABEL(i8259_stubs) |
524 | .quad _C_LABEL(Xintr_legacy0), _C_LABEL(Xrecurse_legacy0) | | 524 | .quad _C_LABEL(Xintr_legacy0), _C_LABEL(Xrecurse_legacy0) |
525 | .quad _C_LABEL(Xresume_legacy0) | | 525 | .quad _C_LABEL(Xresume_legacy0) |
526 | .quad _C_LABEL(Xintr_legacy1), _C_LABEL(Xrecurse_legacy1) | | 526 | .quad _C_LABEL(Xintr_legacy1), _C_LABEL(Xrecurse_legacy1) |
527 | .quad _C_LABEL(Xresume_legacy1) | | 527 | .quad _C_LABEL(Xresume_legacy1) |
528 | .quad _C_LABEL(Xintr_legacy2), _C_LABEL(Xrecurse_legacy2) | | 528 | .quad _C_LABEL(Xintr_legacy2), _C_LABEL(Xrecurse_legacy2) |
529 | .quad _C_LABEL(Xresume_legacy2) | | 529 | .quad _C_LABEL(Xresume_legacy2) |
530 | .quad _C_LABEL(Xintr_legacy3), _C_LABEL(Xrecurse_legacy3) | | 530 | .quad _C_LABEL(Xintr_legacy3), _C_LABEL(Xrecurse_legacy3) |
531 | .quad _C_LABEL(Xresume_legacy3) | | 531 | .quad _C_LABEL(Xresume_legacy3) |
532 | .quad _C_LABEL(Xintr_legacy4), _C_LABEL(Xrecurse_legacy4) | | 532 | .quad _C_LABEL(Xintr_legacy4), _C_LABEL(Xrecurse_legacy4) |
533 | .quad _C_LABEL(Xresume_legacy4) | | 533 | .quad _C_LABEL(Xresume_legacy4) |
534 | .quad _C_LABEL(Xintr_legacy5), _C_LABEL(Xrecurse_legacy5) | | 534 | .quad _C_LABEL(Xintr_legacy5), _C_LABEL(Xrecurse_legacy5) |
535 | .quad _C_LABEL(Xresume_legacy5) | | 535 | .quad _C_LABEL(Xresume_legacy5) |
536 | .quad _C_LABEL(Xintr_legacy6), _C_LABEL(Xrecurse_legacy6) | | 536 | .quad _C_LABEL(Xintr_legacy6), _C_LABEL(Xrecurse_legacy6) |
537 | .quad _C_LABEL(Xresume_legacy6) | | 537 | .quad _C_LABEL(Xresume_legacy6) |
538 | .quad _C_LABEL(Xintr_legacy7), _C_LABEL(Xrecurse_legacy7) | | 538 | .quad _C_LABEL(Xintr_legacy7), _C_LABEL(Xrecurse_legacy7) |
539 | .quad _C_LABEL(Xresume_legacy7) | | 539 | .quad _C_LABEL(Xresume_legacy7) |
540 | .quad _C_LABEL(Xintr_legacy8), _C_LABEL(Xrecurse_legacy8) | | 540 | .quad _C_LABEL(Xintr_legacy8), _C_LABEL(Xrecurse_legacy8) |
541 | .quad _C_LABEL(Xresume_legacy8) | | 541 | .quad _C_LABEL(Xresume_legacy8) |
542 | .quad _C_LABEL(Xintr_legacy9), _C_LABEL(Xrecurse_legacy9) | | 542 | .quad _C_LABEL(Xintr_legacy9), _C_LABEL(Xrecurse_legacy9) |
543 | .quad _C_LABEL(Xresume_legacy9) | | 543 | .quad _C_LABEL(Xresume_legacy9) |
544 | .quad _C_LABEL(Xintr_legacy10), _C_LABEL(Xrecurse_legacy10) | | 544 | .quad _C_LABEL(Xintr_legacy10), _C_LABEL(Xrecurse_legacy10) |
545 | .quad _C_LABEL(Xresume_legacy10) | | 545 | .quad _C_LABEL(Xresume_legacy10) |
546 | .quad _C_LABEL(Xintr_legacy11), _C_LABEL(Xrecurse_legacy11) | | 546 | .quad _C_LABEL(Xintr_legacy11), _C_LABEL(Xrecurse_legacy11) |
547 | .quad _C_LABEL(Xresume_legacy11) | | 547 | .quad _C_LABEL(Xresume_legacy11) |
548 | .quad _C_LABEL(Xintr_legacy12), _C_LABEL(Xrecurse_legacy12) | | 548 | .quad _C_LABEL(Xintr_legacy12), _C_LABEL(Xrecurse_legacy12) |
549 | .quad _C_LABEL(Xresume_legacy12) | | 549 | .quad _C_LABEL(Xresume_legacy12) |
550 | .quad _C_LABEL(Xintr_legacy13), _C_LABEL(Xrecurse_legacy13) | | 550 | .quad _C_LABEL(Xintr_legacy13), _C_LABEL(Xrecurse_legacy13) |
551 | .quad _C_LABEL(Xresume_legacy13) | | 551 | .quad _C_LABEL(Xresume_legacy13) |
552 | .quad _C_LABEL(Xintr_legacy14), _C_LABEL(Xrecurse_legacy14) | | 552 | .quad _C_LABEL(Xintr_legacy14), _C_LABEL(Xrecurse_legacy14) |
553 | .quad _C_LABEL(Xresume_legacy14) | | 553 | .quad _C_LABEL(Xresume_legacy14) |
554 | .quad _C_LABEL(Xintr_legacy15), _C_LABEL(Xrecurse_legacy15) | | 554 | .quad _C_LABEL(Xintr_legacy15), _C_LABEL(Xrecurse_legacy15) |
555 | .quad _C_LABEL(Xresume_legacy15) | | 555 | .quad _C_LABEL(Xresume_legacy15) |
556 | END(i8259_stubs) | | 556 | END(i8259_stubs) |
557 | | | 557 | |
558 | #if NIOAPIC > 0 | | 558 | #if NIOAPIC > 0 |
559 | .type _C_LABEL(ioapic_edge_stubs), @object | | 559 | .type _C_LABEL(ioapic_edge_stubs), @object |
560 | LABEL(ioapic_edge_stubs) | | 560 | LABEL(ioapic_edge_stubs) |
561 | .quad _C_LABEL(Xintr_ioapic_edge0), _C_LABEL(Xrecurse_ioapic_edge0) | | 561 | .quad _C_LABEL(Xintr_ioapic_edge0), _C_LABEL(Xrecurse_ioapic_edge0) |
562 | .quad _C_LABEL(Xresume_ioapic_edge0) | | 562 | .quad _C_LABEL(Xresume_ioapic_edge0) |
563 | .quad _C_LABEL(Xintr_ioapic_edge1), _C_LABEL(Xrecurse_ioapic_edge1) | | 563 | .quad _C_LABEL(Xintr_ioapic_edge1), _C_LABEL(Xrecurse_ioapic_edge1) |
564 | .quad _C_LABEL(Xresume_ioapic_edge1) | | 564 | .quad _C_LABEL(Xresume_ioapic_edge1) |
565 | .quad _C_LABEL(Xintr_ioapic_edge2), _C_LABEL(Xrecurse_ioapic_edge2) | | 565 | .quad _C_LABEL(Xintr_ioapic_edge2), _C_LABEL(Xrecurse_ioapic_edge2) |
566 | .quad _C_LABEL(Xresume_ioapic_edge2) | | 566 | .quad _C_LABEL(Xresume_ioapic_edge2) |
567 | .quad _C_LABEL(Xintr_ioapic_edge3), _C_LABEL(Xrecurse_ioapic_edge3) | | 567 | .quad _C_LABEL(Xintr_ioapic_edge3), _C_LABEL(Xrecurse_ioapic_edge3) |
568 | .quad _C_LABEL(Xresume_ioapic_edge3) | | 568 | .quad _C_LABEL(Xresume_ioapic_edge3) |
569 | .quad _C_LABEL(Xintr_ioapic_edge4), _C_LABEL(Xrecurse_ioapic_edge4) | | 569 | .quad _C_LABEL(Xintr_ioapic_edge4), _C_LABEL(Xrecurse_ioapic_edge4) |
570 | .quad _C_LABEL(Xresume_ioapic_edge4) | | 570 | .quad _C_LABEL(Xresume_ioapic_edge4) |
571 | .quad _C_LABEL(Xintr_ioapic_edge5), _C_LABEL(Xrecurse_ioapic_edge5) | | 571 | .quad _C_LABEL(Xintr_ioapic_edge5), _C_LABEL(Xrecurse_ioapic_edge5) |
572 | .quad _C_LABEL(Xresume_ioapic_edge5) | | 572 | .quad _C_LABEL(Xresume_ioapic_edge5) |
573 | .quad _C_LABEL(Xintr_ioapic_edge6), _C_LABEL(Xrecurse_ioapic_edge6) | | 573 | .quad _C_LABEL(Xintr_ioapic_edge6), _C_LABEL(Xrecurse_ioapic_edge6) |
574 | .quad _C_LABEL(Xresume_ioapic_edge6) | | 574 | .quad _C_LABEL(Xresume_ioapic_edge6) |
575 | .quad _C_LABEL(Xintr_ioapic_edge7), _C_LABEL(Xrecurse_ioapic_edge7) | | 575 | .quad _C_LABEL(Xintr_ioapic_edge7), _C_LABEL(Xrecurse_ioapic_edge7) |
576 | .quad _C_LABEL(Xresume_ioapic_edge7) | | 576 | .quad _C_LABEL(Xresume_ioapic_edge7) |
577 | .quad _C_LABEL(Xintr_ioapic_edge8), _C_LABEL(Xrecurse_ioapic_edge8) | | 577 | .quad _C_LABEL(Xintr_ioapic_edge8), _C_LABEL(Xrecurse_ioapic_edge8) |
578 | .quad _C_LABEL(Xresume_ioapic_edge8) | | 578 | .quad _C_LABEL(Xresume_ioapic_edge8) |
579 | .quad _C_LABEL(Xintr_ioapic_edge9), _C_LABEL(Xrecurse_ioapic_edge9) | | 579 | .quad _C_LABEL(Xintr_ioapic_edge9), _C_LABEL(Xrecurse_ioapic_edge9) |
580 | .quad _C_LABEL(Xresume_ioapic_edge9) | | 580 | .quad _C_LABEL(Xresume_ioapic_edge9) |
581 | .quad _C_LABEL(Xintr_ioapic_edge10), _C_LABEL(Xrecurse_ioapic_edge10) | | 581 | .quad _C_LABEL(Xintr_ioapic_edge10), _C_LABEL(Xrecurse_ioapic_edge10) |
582 | .quad _C_LABEL(Xresume_ioapic_edge10) | | 582 | .quad _C_LABEL(Xresume_ioapic_edge10) |
583 | .quad _C_LABEL(Xintr_ioapic_edge11), _C_LABEL(Xrecurse_ioapic_edge11) | | 583 | .quad _C_LABEL(Xintr_ioapic_edge11), _C_LABEL(Xrecurse_ioapic_edge11) |
584 | .quad _C_LABEL(Xresume_ioapic_edge11) | | 584 | .quad _C_LABEL(Xresume_ioapic_edge11) |
585 | .quad _C_LABEL(Xintr_ioapic_edge12), _C_LABEL(Xrecurse_ioapic_edge12) | | 585 | .quad _C_LABEL(Xintr_ioapic_edge12), _C_LABEL(Xrecurse_ioapic_edge12) |
586 | .quad _C_LABEL(Xresume_ioapic_edge12) | | 586 | .quad _C_LABEL(Xresume_ioapic_edge12) |
587 | .quad _C_LABEL(Xintr_ioapic_edge13), _C_LABEL(Xrecurse_ioapic_edge13) | | 587 | .quad _C_LABEL(Xintr_ioapic_edge13), _C_LABEL(Xrecurse_ioapic_edge13) |
588 | .quad _C_LABEL(Xresume_ioapic_edge13) | | 588 | .quad _C_LABEL(Xresume_ioapic_edge13) |
589 | .quad _C_LABEL(Xintr_ioapic_edge14), _C_LABEL(Xrecurse_ioapic_edge14) | | 589 | .quad _C_LABEL(Xintr_ioapic_edge14), _C_LABEL(Xrecurse_ioapic_edge14) |
590 | .quad _C_LABEL(Xresume_ioapic_edge14) | | 590 | .quad _C_LABEL(Xresume_ioapic_edge14) |
591 | .quad _C_LABEL(Xintr_ioapic_edge15), _C_LABEL(Xrecurse_ioapic_edge15) | | 591 | .quad _C_LABEL(Xintr_ioapic_edge15), _C_LABEL(Xrecurse_ioapic_edge15) |
592 | .quad _C_LABEL(Xresume_ioapic_edge15) | | 592 | .quad _C_LABEL(Xresume_ioapic_edge15) |
593 | .quad _C_LABEL(Xintr_ioapic_edge16), _C_LABEL(Xrecurse_ioapic_edge16) | | 593 | .quad _C_LABEL(Xintr_ioapic_edge16), _C_LABEL(Xrecurse_ioapic_edge16) |
594 | .quad _C_LABEL(Xresume_ioapic_edge16) | | 594 | .quad _C_LABEL(Xresume_ioapic_edge16) |
595 | .quad _C_LABEL(Xintr_ioapic_edge17), _C_LABEL(Xrecurse_ioapic_edge17) | | 595 | .quad _C_LABEL(Xintr_ioapic_edge17), _C_LABEL(Xrecurse_ioapic_edge17) |
596 | .quad _C_LABEL(Xresume_ioapic_edge17) | | 596 | .quad _C_LABEL(Xresume_ioapic_edge17) |
597 | .quad _C_LABEL(Xintr_ioapic_edge18), _C_LABEL(Xrecurse_ioapic_edge18) | | 597 | .quad _C_LABEL(Xintr_ioapic_edge18), _C_LABEL(Xrecurse_ioapic_edge18) |
598 | .quad _C_LABEL(Xresume_ioapic_edge18) | | 598 | .quad _C_LABEL(Xresume_ioapic_edge18) |
599 | .quad _C_LABEL(Xintr_ioapic_edge19), _C_LABEL(Xrecurse_ioapic_edge19) | | 599 | .quad _C_LABEL(Xintr_ioapic_edge19), _C_LABEL(Xrecurse_ioapic_edge19) |
600 | .quad _C_LABEL(Xresume_ioapic_edge19) | | 600 | .quad _C_LABEL(Xresume_ioapic_edge19) |
601 | .quad _C_LABEL(Xintr_ioapic_edge20), _C_LABEL(Xrecurse_ioapic_edge20) | | 601 | .quad _C_LABEL(Xintr_ioapic_edge20), _C_LABEL(Xrecurse_ioapic_edge20) |
602 | .quad _C_LABEL(Xresume_ioapic_edge20) | | 602 | .quad _C_LABEL(Xresume_ioapic_edge20) |
603 | .quad _C_LABEL(Xintr_ioapic_edge21), _C_LABEL(Xrecurse_ioapic_edge21) | | 603 | .quad _C_LABEL(Xintr_ioapic_edge21), _C_LABEL(Xrecurse_ioapic_edge21) |
604 | .quad _C_LABEL(Xresume_ioapic_edge21) | | 604 | .quad _C_LABEL(Xresume_ioapic_edge21) |
605 | .quad _C_LABEL(Xintr_ioapic_edge22), _C_LABEL(Xrecurse_ioapic_edge22) | | 605 | .quad _C_LABEL(Xintr_ioapic_edge22), _C_LABEL(Xrecurse_ioapic_edge22) |
606 | .quad _C_LABEL(Xresume_ioapic_edge22) | | 606 | .quad _C_LABEL(Xresume_ioapic_edge22) |
607 | .quad _C_LABEL(Xintr_ioapic_edge23), _C_LABEL(Xrecurse_ioapic_edge23) | | 607 | .quad _C_LABEL(Xintr_ioapic_edge23), _C_LABEL(Xrecurse_ioapic_edge23) |
608 | .quad _C_LABEL(Xresume_ioapic_edge23) | | 608 | .quad _C_LABEL(Xresume_ioapic_edge23) |
609 | .quad _C_LABEL(Xintr_ioapic_edge24), _C_LABEL(Xrecurse_ioapic_edge24) | | 609 | .quad _C_LABEL(Xintr_ioapic_edge24), _C_LABEL(Xrecurse_ioapic_edge24) |
610 | .quad _C_LABEL(Xresume_ioapic_edge24) | | 610 | .quad _C_LABEL(Xresume_ioapic_edge24) |
611 | .quad _C_LABEL(Xintr_ioapic_edge25), _C_LABEL(Xrecurse_ioapic_edge25) | | 611 | .quad _C_LABEL(Xintr_ioapic_edge25), _C_LABEL(Xrecurse_ioapic_edge25) |
612 | .quad _C_LABEL(Xresume_ioapic_edge25) | | 612 | .quad _C_LABEL(Xresume_ioapic_edge25) |
613 | .quad _C_LABEL(Xintr_ioapic_edge26), _C_LABEL(Xrecurse_ioapic_edge26) | | 613 | .quad _C_LABEL(Xintr_ioapic_edge26), _C_LABEL(Xrecurse_ioapic_edge26) |
614 | .quad _C_LABEL(Xresume_ioapic_edge26) | | 614 | .quad _C_LABEL(Xresume_ioapic_edge26) |
615 | .quad _C_LABEL(Xintr_ioapic_edge27), _C_LABEL(Xrecurse_ioapic_edge27) | | 615 | .quad _C_LABEL(Xintr_ioapic_edge27), _C_LABEL(Xrecurse_ioapic_edge27) |
616 | .quad _C_LABEL(Xresume_ioapic_edge27) | | 616 | .quad _C_LABEL(Xresume_ioapic_edge27) |
617 | .quad _C_LABEL(Xintr_ioapic_edge28), _C_LABEL(Xrecurse_ioapic_edge28) | | 617 | .quad _C_LABEL(Xintr_ioapic_edge28), _C_LABEL(Xrecurse_ioapic_edge28) |
618 | .quad _C_LABEL(Xresume_ioapic_edge28) | | 618 | .quad _C_LABEL(Xresume_ioapic_edge28) |
619 | .quad _C_LABEL(Xintr_ioapic_edge29), _C_LABEL(Xrecurse_ioapic_edge29) | | 619 | .quad _C_LABEL(Xintr_ioapic_edge29), _C_LABEL(Xrecurse_ioapic_edge29) |
620 | .quad _C_LABEL(Xresume_ioapic_edge29) | | 620 | .quad _C_LABEL(Xresume_ioapic_edge29) |
621 | .quad _C_LABEL(Xintr_ioapic_edge30), _C_LABEL(Xrecurse_ioapic_edge30) | | 621 | .quad _C_LABEL(Xintr_ioapic_edge30), _C_LABEL(Xrecurse_ioapic_edge30) |
622 | .quad _C_LABEL(Xresume_ioapic_edge30) | | 622 | .quad _C_LABEL(Xresume_ioapic_edge30) |
623 | .quad _C_LABEL(Xintr_ioapic_edge31), _C_LABEL(Xrecurse_ioapic_edge31) | | 623 | .quad _C_LABEL(Xintr_ioapic_edge31), _C_LABEL(Xrecurse_ioapic_edge31) |
624 | .quad _C_LABEL(Xresume_ioapic_edge31) | | 624 | .quad _C_LABEL(Xresume_ioapic_edge31) |
625 | END(ioapic_edge_stubs) | | 625 | END(ioapic_edge_stubs) |
626 | | | 626 | |
627 | .type _C_LABEL(ioapic_level_stubs), @object | | 627 | .type _C_LABEL(ioapic_level_stubs), @object |
628 | LABEL(ioapic_level_stubs) | | 628 | LABEL(ioapic_level_stubs) |
629 | .quad _C_LABEL(Xintr_ioapic_level0), _C_LABEL(Xrecurse_ioapic_level0) | | 629 | .quad _C_LABEL(Xintr_ioapic_level0), _C_LABEL(Xrecurse_ioapic_level0) |
630 | .quad _C_LABEL(Xresume_ioapic_level0) | | 630 | .quad _C_LABEL(Xresume_ioapic_level0) |
631 | .quad _C_LABEL(Xintr_ioapic_level1), _C_LABEL(Xrecurse_ioapic_level1) | | 631 | .quad _C_LABEL(Xintr_ioapic_level1), _C_LABEL(Xrecurse_ioapic_level1) |
632 | .quad _C_LABEL(Xresume_ioapic_level1) | | 632 | .quad _C_LABEL(Xresume_ioapic_level1) |
633 | .quad _C_LABEL(Xintr_ioapic_level2), _C_LABEL(Xrecurse_ioapic_level2) | | 633 | .quad _C_LABEL(Xintr_ioapic_level2), _C_LABEL(Xrecurse_ioapic_level2) |
634 | .quad _C_LABEL(Xresume_ioapic_level2) | | 634 | .quad _C_LABEL(Xresume_ioapic_level2) |
635 | .quad _C_LABEL(Xintr_ioapic_level3), _C_LABEL(Xrecurse_ioapic_level3) | | 635 | .quad _C_LABEL(Xintr_ioapic_level3), _C_LABEL(Xrecurse_ioapic_level3) |
636 | .quad _C_LABEL(Xresume_ioapic_level3) | | 636 | .quad _C_LABEL(Xresume_ioapic_level3) |
637 | .quad _C_LABEL(Xintr_ioapic_level4), _C_LABEL(Xrecurse_ioapic_level4) | | 637 | .quad _C_LABEL(Xintr_ioapic_level4), _C_LABEL(Xrecurse_ioapic_level4) |
638 | .quad _C_LABEL(Xresume_ioapic_level4) | | 638 | .quad _C_LABEL(Xresume_ioapic_level4) |
639 | .quad _C_LABEL(Xintr_ioapic_level5), _C_LABEL(Xrecurse_ioapic_level5) | | 639 | .quad _C_LABEL(Xintr_ioapic_level5), _C_LABEL(Xrecurse_ioapic_level5) |
640 | .quad _C_LABEL(Xresume_ioapic_level5) | | 640 | .quad _C_LABEL(Xresume_ioapic_level5) |
641 | .quad _C_LABEL(Xintr_ioapic_level6), _C_LABEL(Xrecurse_ioapic_level6) | | 641 | .quad _C_LABEL(Xintr_ioapic_level6), _C_LABEL(Xrecurse_ioapic_level6) |
642 | .quad _C_LABEL(Xresume_ioapic_level6) | | 642 | .quad _C_LABEL(Xresume_ioapic_level6) |
643 | .quad _C_LABEL(Xintr_ioapic_level7), _C_LABEL(Xrecurse_ioapic_level7) | | 643 | .quad _C_LABEL(Xintr_ioapic_level7), _C_LABEL(Xrecurse_ioapic_level7) |
644 | .quad _C_LABEL(Xresume_ioapic_level7) | | 644 | .quad _C_LABEL(Xresume_ioapic_level7) |
645 | .quad _C_LABEL(Xintr_ioapic_level8), _C_LABEL(Xrecurse_ioapic_level8) | | 645 | .quad _C_LABEL(Xintr_ioapic_level8), _C_LABEL(Xrecurse_ioapic_level8) |
646 | .quad _C_LABEL(Xresume_ioapic_level8) | | 646 | .quad _C_LABEL(Xresume_ioapic_level8) |
647 | .quad _C_LABEL(Xintr_ioapic_level9), _C_LABEL(Xrecurse_ioapic_level9) | | 647 | .quad _C_LABEL(Xintr_ioapic_level9), _C_LABEL(Xrecurse_ioapic_level9) |
648 | .quad _C_LABEL(Xresume_ioapic_level9) | | 648 | .quad _C_LABEL(Xresume_ioapic_level9) |
649 | .quad _C_LABEL(Xintr_ioapic_level10), _C_LABEL(Xrecurse_ioapic_level10) | | 649 | .quad _C_LABEL(Xintr_ioapic_level10), _C_LABEL(Xrecurse_ioapic_level10) |
650 | .quad _C_LABEL(Xresume_ioapic_level10) | | 650 | .quad _C_LABEL(Xresume_ioapic_level10) |
651 | .quad _C_LABEL(Xintr_ioapic_level11), _C_LABEL(Xrecurse_ioapic_level11) | | 651 | .quad _C_LABEL(Xintr_ioapic_level11), _C_LABEL(Xrecurse_ioapic_level11) |
652 | .quad _C_LABEL(Xresume_ioapic_level11) | | 652 | .quad _C_LABEL(Xresume_ioapic_level11) |
653 | .quad _C_LABEL(Xintr_ioapic_level12), _C_LABEL(Xrecurse_ioapic_level12) | | 653 | .quad _C_LABEL(Xintr_ioapic_level12), _C_LABEL(Xrecurse_ioapic_level12) |
654 | .quad _C_LABEL(Xresume_ioapic_level12) | | 654 | .quad _C_LABEL(Xresume_ioapic_level12) |
655 | .quad _C_LABEL(Xintr_ioapic_level13), _C_LABEL(Xrecurse_ioapic_level13) | | 655 | .quad _C_LABEL(Xintr_ioapic_level13), _C_LABEL(Xrecurse_ioapic_level13) |
656 | .quad _C_LABEL(Xresume_ioapic_level13) | | 656 | .quad _C_LABEL(Xresume_ioapic_level13) |
657 | .quad _C_LABEL(Xintr_ioapic_level14), _C_LABEL(Xrecurse_ioapic_level14) | | 657 | .quad _C_LABEL(Xintr_ioapic_level14), _C_LABEL(Xrecurse_ioapic_level14) |
658 | .quad _C_LABEL(Xresume_ioapic_level14) | | 658 | .quad _C_LABEL(Xresume_ioapic_level14) |
659 | .quad _C_LABEL(Xintr_ioapic_level15), _C_LABEL(Xrecurse_ioapic_level15) | | 659 | .quad _C_LABEL(Xintr_ioapic_level15), _C_LABEL(Xrecurse_ioapic_level15) |
660 | .quad _C_LABEL(Xresume_ioapic_level15) | | 660 | .quad _C_LABEL(Xresume_ioapic_level15) |
661 | .quad _C_LABEL(Xintr_ioapic_level16), _C_LABEL(Xrecurse_ioapic_level16) | | 661 | .quad _C_LABEL(Xintr_ioapic_level16), _C_LABEL(Xrecurse_ioapic_level16) |
662 | .quad _C_LABEL(Xresume_ioapic_level16) | | 662 | .quad _C_LABEL(Xresume_ioapic_level16) |
663 | .quad _C_LABEL(Xintr_ioapic_level17), _C_LABEL(Xrecurse_ioapic_level17) | | 663 | .quad _C_LABEL(Xintr_ioapic_level17), _C_LABEL(Xrecurse_ioapic_level17) |
664 | .quad _C_LABEL(Xresume_ioapic_level17) | | 664 | .quad _C_LABEL(Xresume_ioapic_level17) |
665 | .quad _C_LABEL(Xintr_ioapic_level18), _C_LABEL(Xrecurse_ioapic_level18) | | 665 | .quad _C_LABEL(Xintr_ioapic_level18), _C_LABEL(Xrecurse_ioapic_level18) |
666 | .quad _C_LABEL(Xresume_ioapic_level18) | | 666 | .quad _C_LABEL(Xresume_ioapic_level18) |
667 | .quad _C_LABEL(Xintr_ioapic_level19), _C_LABEL(Xrecurse_ioapic_level19) | | 667 | .quad _C_LABEL(Xintr_ioapic_level19), _C_LABEL(Xrecurse_ioapic_level19) |
668 | .quad _C_LABEL(Xresume_ioapic_level19) | | 668 | .quad _C_LABEL(Xresume_ioapic_level19) |
669 | .quad _C_LABEL(Xintr_ioapic_level20), _C_LABEL(Xrecurse_ioapic_level20) | | 669 | .quad _C_LABEL(Xintr_ioapic_level20), _C_LABEL(Xrecurse_ioapic_level20) |
670 | .quad _C_LABEL(Xresume_ioapic_level20) | | 670 | .quad _C_LABEL(Xresume_ioapic_level20) |
671 | .quad _C_LABEL(Xintr_ioapic_level21), _C_LABEL(Xrecurse_ioapic_level21) | | 671 | .quad _C_LABEL(Xintr_ioapic_level21), _C_LABEL(Xrecurse_ioapic_level21) |
672 | .quad _C_LABEL(Xresume_ioapic_level21) | | 672 | .quad _C_LABEL(Xresume_ioapic_level21) |
673 | .quad _C_LABEL(Xintr_ioapic_level22), _C_LABEL(Xrecurse_ioapic_level22) | | 673 | .quad _C_LABEL(Xintr_ioapic_level22), _C_LABEL(Xrecurse_ioapic_level22) |
674 | .quad _C_LABEL(Xresume_ioapic_level22) | | 674 | .quad _C_LABEL(Xresume_ioapic_level22) |
675 | .quad _C_LABEL(Xintr_ioapic_level23), _C_LABEL(Xrecurse_ioapic_level23) | | 675 | .quad _C_LABEL(Xintr_ioapic_level23), _C_LABEL(Xrecurse_ioapic_level23) |
676 | .quad _C_LABEL(Xresume_ioapic_level23) | | 676 | .quad _C_LABEL(Xresume_ioapic_level23) |
677 | .quad _C_LABEL(Xintr_ioapic_level24), _C_LABEL(Xrecurse_ioapic_level24) | | 677 | .quad _C_LABEL(Xintr_ioapic_level24), _C_LABEL(Xrecurse_ioapic_level24) |
678 | .quad _C_LABEL(Xresume_ioapic_level24) | | 678 | .quad _C_LABEL(Xresume_ioapic_level24) |
679 | .quad _C_LABEL(Xintr_ioapic_level25), _C_LABEL(Xrecurse_ioapic_level25) | | 679 | .quad _C_LABEL(Xintr_ioapic_level25), _C_LABEL(Xrecurse_ioapic_level25) |
680 | .quad _C_LABEL(Xresume_ioapic_level25) | | 680 | .quad _C_LABEL(Xresume_ioapic_level25) |
681 | .quad _C_LABEL(Xintr_ioapic_level26), _C_LABEL(Xrecurse_ioapic_level26) | | 681 | .quad _C_LABEL(Xintr_ioapic_level26), _C_LABEL(Xrecurse_ioapic_level26) |
682 | .quad _C_LABEL(Xresume_ioapic_level26) | | 682 | .quad _C_LABEL(Xresume_ioapic_level26) |
683 | .quad _C_LABEL(Xintr_ioapic_level27), _C_LABEL(Xrecurse_ioapic_level27) | | 683 | .quad _C_LABEL(Xintr_ioapic_level27), _C_LABEL(Xrecurse_ioapic_level27) |
684 | .quad _C_LABEL(Xresume_ioapic_level27) | | 684 | .quad _C_LABEL(Xresume_ioapic_level27) |
685 | .quad _C_LABEL(Xintr_ioapic_level28), _C_LABEL(Xrecurse_ioapic_level28) | | 685 | .quad _C_LABEL(Xintr_ioapic_level28), _C_LABEL(Xrecurse_ioapic_level28) |
686 | .quad _C_LABEL(Xresume_ioapic_level28) | | 686 | .quad _C_LABEL(Xresume_ioapic_level28) |
687 | .quad _C_LABEL(Xintr_ioapic_level29), _C_LABEL(Xrecurse_ioapic_level29) | | 687 | .quad _C_LABEL(Xintr_ioapic_level29), _C_LABEL(Xrecurse_ioapic_level29) |
688 | .quad _C_LABEL(Xresume_ioapic_level29) | | 688 | .quad _C_LABEL(Xresume_ioapic_level29) |
689 | .quad _C_LABEL(Xintr_ioapic_level30), _C_LABEL(Xrecurse_ioapic_level30) | | 689 | .quad _C_LABEL(Xintr_ioapic_level30), _C_LABEL(Xrecurse_ioapic_level30) |
690 | .quad _C_LABEL(Xresume_ioapic_level30) | | 690 | .quad _C_LABEL(Xresume_ioapic_level30) |
691 | .quad _C_LABEL(Xintr_ioapic_level31), _C_LABEL(Xrecurse_ioapic_level31) | | 691 | .quad _C_LABEL(Xintr_ioapic_level31), _C_LABEL(Xrecurse_ioapic_level31) |
692 | .quad _C_LABEL(Xresume_ioapic_level31) | | 692 | .quad _C_LABEL(Xresume_ioapic_level31) |
693 | END(ioapic_level_stubs) | | 693 | END(ioapic_level_stubs) |
694 | | | 694 | |
695 | .type _C_LABEL(x2apic_edge_stubs), @object | | 695 | .type _C_LABEL(x2apic_edge_stubs), @object |
696 | LABEL(x2apic_edge_stubs) | | 696 | LABEL(x2apic_edge_stubs) |
697 | .quad _C_LABEL(Xintr_x2apic_edge0), _C_LABEL(Xrecurse_x2apic_edge0) | | 697 | .quad _C_LABEL(Xintr_x2apic_edge0), _C_LABEL(Xrecurse_x2apic_edge0) |
698 | .quad _C_LABEL(Xresume_x2apic_edge0) | | 698 | .quad _C_LABEL(Xresume_x2apic_edge0) |
699 | .quad _C_LABEL(Xintr_x2apic_edge1), _C_LABEL(Xrecurse_x2apic_edge1) | | 699 | .quad _C_LABEL(Xintr_x2apic_edge1), _C_LABEL(Xrecurse_x2apic_edge1) |
700 | .quad _C_LABEL(Xresume_x2apic_edge1) | | 700 | .quad _C_LABEL(Xresume_x2apic_edge1) |
701 | .quad _C_LABEL(Xintr_x2apic_edge2), _C_LABEL(Xrecurse_x2apic_edge2) | | 701 | .quad _C_LABEL(Xintr_x2apic_edge2), _C_LABEL(Xrecurse_x2apic_edge2) |
702 | .quad _C_LABEL(Xresume_x2apic_edge2) | | 702 | .quad _C_LABEL(Xresume_x2apic_edge2) |
703 | .quad _C_LABEL(Xintr_x2apic_edge3), _C_LABEL(Xrecurse_x2apic_edge3) | | 703 | .quad _C_LABEL(Xintr_x2apic_edge3), _C_LABEL(Xrecurse_x2apic_edge3) |
704 | .quad _C_LABEL(Xresume_x2apic_edge3) | | 704 | .quad _C_LABEL(Xresume_x2apic_edge3) |
705 | .quad _C_LABEL(Xintr_x2apic_edge4), _C_LABEL(Xrecurse_x2apic_edge4) | | 705 | .quad _C_LABEL(Xintr_x2apic_edge4), _C_LABEL(Xrecurse_x2apic_edge4) |
706 | .quad _C_LABEL(Xresume_x2apic_edge4) | | 706 | .quad _C_LABEL(Xresume_x2apic_edge4) |
707 | .quad _C_LABEL(Xintr_x2apic_edge5), _C_LABEL(Xrecurse_x2apic_edge5) | | 707 | .quad _C_LABEL(Xintr_x2apic_edge5), _C_LABEL(Xrecurse_x2apic_edge5) |
708 | .quad _C_LABEL(Xresume_x2apic_edge5) | | 708 | .quad _C_LABEL(Xresume_x2apic_edge5) |
709 | .quad _C_LABEL(Xintr_x2apic_edge6), _C_LABEL(Xrecurse_x2apic_edge6) | | 709 | .quad _C_LABEL(Xintr_x2apic_edge6), _C_LABEL(Xrecurse_x2apic_edge6) |
710 | .quad _C_LABEL(Xresume_x2apic_edge6) | | 710 | .quad _C_LABEL(Xresume_x2apic_edge6) |
711 | .quad _C_LABEL(Xintr_x2apic_edge7), _C_LABEL(Xrecurse_x2apic_edge7) | | 711 | .quad _C_LABEL(Xintr_x2apic_edge7), _C_LABEL(Xrecurse_x2apic_edge7) |
712 | .quad _C_LABEL(Xresume_x2apic_edge7) | | 712 | .quad _C_LABEL(Xresume_x2apic_edge7) |
713 | .quad _C_LABEL(Xintr_x2apic_edge8), _C_LABEL(Xrecurse_x2apic_edge8) | | 713 | .quad _C_LABEL(Xintr_x2apic_edge8), _C_LABEL(Xrecurse_x2apic_edge8) |
714 | .quad _C_LABEL(Xresume_x2apic_edge8) | | 714 | .quad _C_LABEL(Xresume_x2apic_edge8) |
715 | .quad _C_LABEL(Xintr_x2apic_edge9), _C_LABEL(Xrecurse_x2apic_edge9) | | 715 | .quad _C_LABEL(Xintr_x2apic_edge9), _C_LABEL(Xrecurse_x2apic_edge9) |
716 | .quad _C_LABEL(Xresume_x2apic_edge9) | | 716 | .quad _C_LABEL(Xresume_x2apic_edge9) |
717 | .quad _C_LABEL(Xintr_x2apic_edge10), _C_LABEL(Xrecurse_x2apic_edge10) | | 717 | .quad _C_LABEL(Xintr_x2apic_edge10), _C_LABEL(Xrecurse_x2apic_edge10) |
718 | .quad _C_LABEL(Xresume_x2apic_edge10) | | 718 | .quad _C_LABEL(Xresume_x2apic_edge10) |
719 | .quad _C_LABEL(Xintr_x2apic_edge11), _C_LABEL(Xrecurse_x2apic_edge11) | | 719 | .quad _C_LABEL(Xintr_x2apic_edge11), _C_LABEL(Xrecurse_x2apic_edge11) |
720 | .quad _C_LABEL(Xresume_x2apic_edge11) | | 720 | .quad _C_LABEL(Xresume_x2apic_edge11) |
721 | .quad _C_LABEL(Xintr_x2apic_edge12), _C_LABEL(Xrecurse_x2apic_edge12) | | 721 | .quad _C_LABEL(Xintr_x2apic_edge12), _C_LABEL(Xrecurse_x2apic_edge12) |
722 | .quad _C_LABEL(Xresume_x2apic_edge12) | | 722 | .quad _C_LABEL(Xresume_x2apic_edge12) |
723 | .quad _C_LABEL(Xintr_x2apic_edge13), _C_LABEL(Xrecurse_x2apic_edge13) | | 723 | .quad _C_LABEL(Xintr_x2apic_edge13), _C_LABEL(Xrecurse_x2apic_edge13) |
724 | .quad _C_LABEL(Xresume_x2apic_edge13) | | 724 | .quad _C_LABEL(Xresume_x2apic_edge13) |
725 | .quad _C_LABEL(Xintr_x2apic_edge14), _C_LABEL(Xrecurse_x2apic_edge14) | | 725 | .quad _C_LABEL(Xintr_x2apic_edge14), _C_LABEL(Xrecurse_x2apic_edge14) |
726 | .quad _C_LABEL(Xresume_x2apic_edge14) | | 726 | .quad _C_LABEL(Xresume_x2apic_edge14) |
727 | .quad _C_LABEL(Xintr_x2apic_edge15), _C_LABEL(Xrecurse_x2apic_edge15) | | 727 | .quad _C_LABEL(Xintr_x2apic_edge15), _C_LABEL(Xrecurse_x2apic_edge15) |
728 | .quad _C_LABEL(Xresume_x2apic_edge15) | | 728 | .quad _C_LABEL(Xresume_x2apic_edge15) |
729 | .quad _C_LABEL(Xintr_x2apic_edge16), _C_LABEL(Xrecurse_x2apic_edge16) | | 729 | .quad _C_LABEL(Xintr_x2apic_edge16), _C_LABEL(Xrecurse_x2apic_edge16) |
730 | .quad _C_LABEL(Xresume_x2apic_edge16) | | 730 | .quad _C_LABEL(Xresume_x2apic_edge16) |
731 | .quad _C_LABEL(Xintr_x2apic_edge17), _C_LABEL(Xrecurse_x2apic_edge17) | | 731 | .quad _C_LABEL(Xintr_x2apic_edge17), _C_LABEL(Xrecurse_x2apic_edge17) |
732 | .quad _C_LABEL(Xresume_x2apic_edge17) | | 732 | .quad _C_LABEL(Xresume_x2apic_edge17) |
733 | .quad _C_LABEL(Xintr_x2apic_edge18), _C_LABEL(Xrecurse_x2apic_edge18) | | 733 | .quad _C_LABEL(Xintr_x2apic_edge18), _C_LABEL(Xrecurse_x2apic_edge18) |
734 | .quad _C_LABEL(Xresume_x2apic_edge18) | | 734 | .quad _C_LABEL(Xresume_x2apic_edge18) |
735 | .quad _C_LABEL(Xintr_x2apic_edge19), _C_LABEL(Xrecurse_x2apic_edge19) | | 735 | .quad _C_LABEL(Xintr_x2apic_edge19), _C_LABEL(Xrecurse_x2apic_edge19) |
736 | .quad _C_LABEL(Xresume_x2apic_edge19) | | 736 | .quad _C_LABEL(Xresume_x2apic_edge19) |
737 | .quad _C_LABEL(Xintr_x2apic_edge20), _C_LABEL(Xrecurse_x2apic_edge20) | | 737 | .quad _C_LABEL(Xintr_x2apic_edge20), _C_LABEL(Xrecurse_x2apic_edge20) |
738 | .quad _C_LABEL(Xresume_x2apic_edge20) | | 738 | .quad _C_LABEL(Xresume_x2apic_edge20) |
739 | .quad _C_LABEL(Xintr_x2apic_edge21), _C_LABEL(Xrecurse_x2apic_edge21) | | 739 | .quad _C_LABEL(Xintr_x2apic_edge21), _C_LABEL(Xrecurse_x2apic_edge21) |
740 | .quad _C_LABEL(Xresume_x2apic_edge21) | | 740 | .quad _C_LABEL(Xresume_x2apic_edge21) |
741 | .quad _C_LABEL(Xintr_x2apic_edge22), _C_LABEL(Xrecurse_x2apic_edge22) | | 741 | .quad _C_LABEL(Xintr_x2apic_edge22), _C_LABEL(Xrecurse_x2apic_edge22) |
742 | .quad _C_LABEL(Xresume_x2apic_edge22) | | 742 | .quad _C_LABEL(Xresume_x2apic_edge22) |
743 | .quad _C_LABEL(Xintr_x2apic_edge23), _C_LABEL(Xrecurse_x2apic_edge23) | | 743 | .quad _C_LABEL(Xintr_x2apic_edge23), _C_LABEL(Xrecurse_x2apic_edge23) |
744 | .quad _C_LABEL(Xresume_x2apic_edge23) | | 744 | .quad _C_LABEL(Xresume_x2apic_edge23) |
745 | .quad _C_LABEL(Xintr_x2apic_edge24), _C_LABEL(Xrecurse_x2apic_edge24) | | 745 | .quad _C_LABEL(Xintr_x2apic_edge24), _C_LABEL(Xrecurse_x2apic_edge24) |
746 | .quad _C_LABEL(Xresume_x2apic_edge24) | | 746 | .quad _C_LABEL(Xresume_x2apic_edge24) |
747 | .quad _C_LABEL(Xintr_x2apic_edge25), _C_LABEL(Xrecurse_x2apic_edge25) | | 747 | .quad _C_LABEL(Xintr_x2apic_edge25), _C_LABEL(Xrecurse_x2apic_edge25) |
748 | .quad _C_LABEL(Xresume_x2apic_edge25) | | 748 | .quad _C_LABEL(Xresume_x2apic_edge25) |
749 | .quad _C_LABEL(Xintr_x2apic_edge26), _C_LABEL(Xrecurse_x2apic_edge26) | | 749 | .quad _C_LABEL(Xintr_x2apic_edge26), _C_LABEL(Xrecurse_x2apic_edge26) |
750 | .quad _C_LABEL(Xresume_x2apic_edge26) | | 750 | .quad _C_LABEL(Xresume_x2apic_edge26) |
751 | .quad _C_LABEL(Xintr_x2apic_edge27), _C_LABEL(Xrecurse_x2apic_edge27) | | 751 | .quad _C_LABEL(Xintr_x2apic_edge27), _C_LABEL(Xrecurse_x2apic_edge27) |
752 | .quad _C_LABEL(Xresume_x2apic_edge27) | | 752 | .quad _C_LABEL(Xresume_x2apic_edge27) |
753 | .quad _C_LABEL(Xintr_x2apic_edge28), _C_LABEL(Xrecurse_x2apic_edge28) | | 753 | .quad _C_LABEL(Xintr_x2apic_edge28), _C_LABEL(Xrecurse_x2apic_edge28) |
754 | .quad _C_LABEL(Xresume_x2apic_edge28) | | 754 | .quad _C_LABEL(Xresume_x2apic_edge28) |
755 | .quad _C_LABEL(Xintr_x2apic_edge29), _C_LABEL(Xrecurse_x2apic_edge29) | | 755 | .quad _C_LABEL(Xintr_x2apic_edge29), _C_LABEL(Xrecurse_x2apic_edge29) |
756 | .quad _C_LABEL(Xresume_x2apic_edge29) | | 756 | .quad _C_LABEL(Xresume_x2apic_edge29) |
757 | .quad _C_LABEL(Xintr_x2apic_edge30), _C_LABEL(Xrecurse_x2apic_edge30) | | 757 | .quad _C_LABEL(Xintr_x2apic_edge30), _C_LABEL(Xrecurse_x2apic_edge30) |
758 | .quad _C_LABEL(Xresume_x2apic_edge30) | | 758 | .quad _C_LABEL(Xresume_x2apic_edge30) |
759 | .quad _C_LABEL(Xintr_x2apic_edge31), _C_LABEL(Xrecurse_x2apic_edge31) | | 759 | .quad _C_LABEL(Xintr_x2apic_edge31), _C_LABEL(Xrecurse_x2apic_edge31) |
760 | .quad _C_LABEL(Xresume_x2apic_edge31) | | 760 | .quad _C_LABEL(Xresume_x2apic_edge31) |
761 | END(x2apic_edge_stubs) | | 761 | END(x2apic_edge_stubs) |
762 | | | 762 | |
763 | .type _C_LABEL(x2apic_level_stubs), @object | | 763 | .type _C_LABEL(x2apic_level_stubs), @object |
764 | LABEL(x2apic_level_stubs) | | 764 | LABEL(x2apic_level_stubs) |
765 | .quad _C_LABEL(Xintr_x2apic_level0), _C_LABEL(Xrecurse_x2apic_level0) | | 765 | .quad _C_LABEL(Xintr_x2apic_level0), _C_LABEL(Xrecurse_x2apic_level0) |
766 | .quad _C_LABEL(Xresume_x2apic_level0) | | 766 | .quad _C_LABEL(Xresume_x2apic_level0) |
767 | .quad _C_LABEL(Xintr_x2apic_level1), _C_LABEL(Xrecurse_x2apic_level1) | | 767 | .quad _C_LABEL(Xintr_x2apic_level1), _C_LABEL(Xrecurse_x2apic_level1) |
768 | .quad _C_LABEL(Xresume_x2apic_level1) | | 768 | .quad _C_LABEL(Xresume_x2apic_level1) |
769 | .quad _C_LABEL(Xintr_x2apic_level2), _C_LABEL(Xrecurse_x2apic_level2) | | 769 | .quad _C_LABEL(Xintr_x2apic_level2), _C_LABEL(Xrecurse_x2apic_level2) |
770 | .quad _C_LABEL(Xresume_x2apic_level2) | | 770 | .quad _C_LABEL(Xresume_x2apic_level2) |
771 | .quad _C_LABEL(Xintr_x2apic_level3), _C_LABEL(Xrecurse_x2apic_level3) | | 771 | .quad _C_LABEL(Xintr_x2apic_level3), _C_LABEL(Xrecurse_x2apic_level3) |
772 | .quad _C_LABEL(Xresume_x2apic_level3) | | 772 | .quad _C_LABEL(Xresume_x2apic_level3) |
773 | .quad _C_LABEL(Xintr_x2apic_level4), _C_LABEL(Xrecurse_x2apic_level4) | | 773 | .quad _C_LABEL(Xintr_x2apic_level4), _C_LABEL(Xrecurse_x2apic_level4) |
774 | .quad _C_LABEL(Xresume_x2apic_level4) | | 774 | .quad _C_LABEL(Xresume_x2apic_level4) |
775 | .quad _C_LABEL(Xintr_x2apic_level5), _C_LABEL(Xrecurse_x2apic_level5) | | 775 | .quad _C_LABEL(Xintr_x2apic_level5), _C_LABEL(Xrecurse_x2apic_level5) |
776 | .quad _C_LABEL(Xresume_x2apic_level5) | | 776 | .quad _C_LABEL(Xresume_x2apic_level5) |
777 | .quad _C_LABEL(Xintr_x2apic_level6), _C_LABEL(Xrecurse_x2apic_level6) | | 777 | .quad _C_LABEL(Xintr_x2apic_level6), _C_LABEL(Xrecurse_x2apic_level6) |
778 | .quad _C_LABEL(Xresume_x2apic_level6) | | 778 | .quad _C_LABEL(Xresume_x2apic_level6) |
779 | .quad _C_LABEL(Xintr_x2apic_level7), _C_LABEL(Xrecurse_x2apic_level7) | | 779 | .quad _C_LABEL(Xintr_x2apic_level7), _C_LABEL(Xrecurse_x2apic_level7) |
780 | .quad _C_LABEL(Xresume_x2apic_level7) | | 780 | .quad _C_LABEL(Xresume_x2apic_level7) |
781 | .quad _C_LABEL(Xintr_x2apic_level8), _C_LABEL(Xrecurse_x2apic_level8) | | 781 | .quad _C_LABEL(Xintr_x2apic_level8), _C_LABEL(Xrecurse_x2apic_level8) |
782 | .quad _C_LABEL(Xresume_x2apic_level8) | | 782 | .quad _C_LABEL(Xresume_x2apic_level8) |
783 | .quad _C_LABEL(Xintr_x2apic_level9), _C_LABEL(Xrecurse_x2apic_level9) | | 783 | .quad _C_LABEL(Xintr_x2apic_level9), _C_LABEL(Xrecurse_x2apic_level9) |
784 | .quad _C_LABEL(Xresume_x2apic_level9) | | 784 | .quad _C_LABEL(Xresume_x2apic_level9) |
785 | .quad _C_LABEL(Xintr_x2apic_level10), _C_LABEL(Xrecurse_x2apic_level10) | | 785 | .quad _C_LABEL(Xintr_x2apic_level10), _C_LABEL(Xrecurse_x2apic_level10) |
786 | .quad _C_LABEL(Xresume_x2apic_level10) | | 786 | .quad _C_LABEL(Xresume_x2apic_level10) |
787 | .quad _C_LABEL(Xintr_x2apic_level11), _C_LABEL(Xrecurse_x2apic_level11) | | 787 | .quad _C_LABEL(Xintr_x2apic_level11), _C_LABEL(Xrecurse_x2apic_level11) |
788 | .quad _C_LABEL(Xresume_x2apic_level11) | | 788 | .quad _C_LABEL(Xresume_x2apic_level11) |
789 | .quad _C_LABEL(Xintr_x2apic_level12), _C_LABEL(Xrecurse_x2apic_level12) | | 789 | .quad _C_LABEL(Xintr_x2apic_level12), _C_LABEL(Xrecurse_x2apic_level12) |
790 | .quad _C_LABEL(Xresume_x2apic_level12) | | 790 | .quad _C_LABEL(Xresume_x2apic_level12) |
791 | .quad _C_LABEL(Xintr_x2apic_level13), _C_LABEL(Xrecurse_x2apic_level13) | | 791 | .quad _C_LABEL(Xintr_x2apic_level13), _C_LABEL(Xrecurse_x2apic_level13) |
792 | .quad _C_LABEL(Xresume_x2apic_level13) | | 792 | .quad _C_LABEL(Xresume_x2apic_level13) |
793 | .quad _C_LABEL(Xintr_x2apic_level14), _C_LABEL(Xrecurse_x2apic_level14) | | 793 | .quad _C_LABEL(Xintr_x2apic_level14), _C_LABEL(Xrecurse_x2apic_level14) |
794 | .quad _C_LABEL(Xresume_x2apic_level14) | | 794 | .quad _C_LABEL(Xresume_x2apic_level14) |
795 | .quad _C_LABEL(Xintr_x2apic_level15), _C_LABEL(Xrecurse_x2apic_level15) | | 795 | .quad _C_LABEL(Xintr_x2apic_level15), _C_LABEL(Xrecurse_x2apic_level15) |
796 | .quad _C_LABEL(Xresume_x2apic_level15) | | 796 | .quad _C_LABEL(Xresume_x2apic_level15) |
797 | .quad _C_LABEL(Xintr_x2apic_level16), _C_LABEL(Xrecurse_x2apic_level16) | | 797 | .quad _C_LABEL(Xintr_x2apic_level16), _C_LABEL(Xrecurse_x2apic_level16) |
798 | .quad _C_LABEL(Xresume_x2apic_level16) | | 798 | .quad _C_LABEL(Xresume_x2apic_level16) |
799 | .quad _C_LABEL(Xintr_x2apic_level17), _C_LABEL(Xrecurse_x2apic_level17) | | 799 | .quad _C_LABEL(Xintr_x2apic_level17), _C_LABEL(Xrecurse_x2apic_level17) |
800 | .quad _C_LABEL(Xresume_x2apic_level17) | | 800 | .quad _C_LABEL(Xresume_x2apic_level17) |
801 | .quad _C_LABEL(Xintr_x2apic_level18), _C_LABEL(Xrecurse_x2apic_level18) | | 801 | .quad _C_LABEL(Xintr_x2apic_level18), _C_LABEL(Xrecurse_x2apic_level18) |
802 | .quad _C_LABEL(Xresume_x2apic_level18) | | 802 | .quad _C_LABEL(Xresume_x2apic_level18) |
803 | .quad _C_LABEL(Xintr_x2apic_level19), _C_LABEL(Xrecurse_x2apic_level19) | | 803 | .quad _C_LABEL(Xintr_x2apic_level19), _C_LABEL(Xrecurse_x2apic_level19) |
804 | .quad _C_LABEL(Xresume_x2apic_level19) | | 804 | .quad _C_LABEL(Xresume_x2apic_level19) |
805 | .quad _C_LABEL(Xintr_x2apic_level20), _C_LABEL(Xrecurse_x2apic_level20) | | 805 | .quad _C_LABEL(Xintr_x2apic_level20), _C_LABEL(Xrecurse_x2apic_level20) |
806 | .quad _C_LABEL(Xresume_x2apic_level20) | | 806 | .quad _C_LABEL(Xresume_x2apic_level20) |
807 | .quad _C_LABEL(Xintr_x2apic_level21), _C_LABEL(Xrecurse_x2apic_level21) | | 807 | .quad _C_LABEL(Xintr_x2apic_level21), _C_LABEL(Xrecurse_x2apic_level21) |
808 | .quad _C_LABEL(Xresume_x2apic_level21) | | 808 | .quad _C_LABEL(Xresume_x2apic_level21) |
809 | .quad _C_LABEL(Xintr_x2apic_level22), _C_LABEL(Xrecurse_x2apic_level22) | | 809 | .quad _C_LABEL(Xintr_x2apic_level22), _C_LABEL(Xrecurse_x2apic_level22) |
810 | .quad _C_LABEL(Xresume_x2apic_level22) | | 810 | .quad _C_LABEL(Xresume_x2apic_level22) |
811 | .quad _C_LABEL(Xintr_x2apic_level23), _C_LABEL(Xrecurse_x2apic_level23) | | 811 | .quad _C_LABEL(Xintr_x2apic_level23), _C_LABEL(Xrecurse_x2apic_level23) |
812 | .quad _C_LABEL(Xresume_x2apic_level23) | | 812 | .quad _C_LABEL(Xresume_x2apic_level23) |
813 | .quad _C_LABEL(Xintr_x2apic_level24), _C_LABEL(Xrecurse_x2apic_level24) | | 813 | .quad _C_LABEL(Xintr_x2apic_level24), _C_LABEL(Xrecurse_x2apic_level24) |
814 | .quad _C_LABEL(Xresume_x2apic_level24) | | 814 | .quad _C_LABEL(Xresume_x2apic_level24) |
815 | .quad _C_LABEL(Xintr_x2apic_level25), _C_LABEL(Xrecurse_x2apic_level25) | | 815 | .quad _C_LABEL(Xintr_x2apic_level25), _C_LABEL(Xrecurse_x2apic_level25) |
816 | .quad _C_LABEL(Xresume_x2apic_level25) | | 816 | .quad _C_LABEL(Xresume_x2apic_level25) |
817 | .quad _C_LABEL(Xintr_x2apic_level26), _C_LABEL(Xrecurse_x2apic_level26) | | 817 | .quad _C_LABEL(Xintr_x2apic_level26), _C_LABEL(Xrecurse_x2apic_level26) |
818 | .quad _C_LABEL(Xresume_x2apic_level26) | | 818 | .quad _C_LABEL(Xresume_x2apic_level26) |
819 | .quad _C_LABEL(Xintr_x2apic_level27), _C_LABEL(Xrecurse_x2apic_level27) | | 819 | .quad _C_LABEL(Xintr_x2apic_level27), _C_LABEL(Xrecurse_x2apic_level27) |
820 | .quad _C_LABEL(Xresume_x2apic_level27) | | 820 | .quad _C_LABEL(Xresume_x2apic_level27) |
821 | .quad _C_LABEL(Xintr_x2apic_level28), _C_LABEL(Xrecurse_x2apic_level28) | | 821 | .quad _C_LABEL(Xintr_x2apic_level28), _C_LABEL(Xrecurse_x2apic_level28) |
822 | .quad _C_LABEL(Xresume_x2apic_level28) | | 822 | .quad _C_LABEL(Xresume_x2apic_level28) |
823 | .quad _C_LABEL(Xintr_x2apic_level29), _C_LABEL(Xrecurse_x2apic_level29) | | 823 | .quad _C_LABEL(Xintr_x2apic_level29), _C_LABEL(Xrecurse_x2apic_level29) |
824 | .quad _C_LABEL(Xresume_x2apic_level29) | | 824 | .quad _C_LABEL(Xresume_x2apic_level29) |
825 | .quad _C_LABEL(Xintr_x2apic_level30), _C_LABEL(Xrecurse_x2apic_level30) | | 825 | .quad _C_LABEL(Xintr_x2apic_level30), _C_LABEL(Xrecurse_x2apic_level30) |
826 | .quad _C_LABEL(Xresume_x2apic_level30) | | 826 | .quad _C_LABEL(Xresume_x2apic_level30) |
827 | .quad _C_LABEL(Xintr_x2apic_level31), _C_LABEL(Xrecurse_x2apic_level31) | | 827 | .quad _C_LABEL(Xintr_x2apic_level31), _C_LABEL(Xrecurse_x2apic_level31) |
828 | .quad _C_LABEL(Xresume_x2apic_level31) | | 828 | .quad _C_LABEL(Xresume_x2apic_level31) |
829 | END(x2apic_level_stubs) | | 829 | END(x2apic_level_stubs) |
830 | #endif | | 830 | #endif |
831 | | | 831 | |
832 | #endif /* !defined(XEN) */ | | 832 | #endif /* !defined(XEN) */ |
833 | | | 833 | |
834 | #if defined(XEN) | | 834 | #if defined(XEN) |
835 | /* Resume/recurse procedures for spl() */ | | 835 | /* Resume/recurse procedures for spl() */ |
836 | #define XENINTRSTUB(name, num, early_ack, late_ack, mask, unmask, level_mask) \ | | 836 | #define XENINTRSTUB(name, num, early_ack, late_ack, mask, unmask, level_mask) \ |
837 | IDTVEC(recurse_ ## name ## num) ;\ | | 837 | IDTVEC(recurse_ ## name ## num) ;\ |
838 | INTR_RECURSE_HWFRAME ;\ | | 838 | INTR_RECURSE_HWFRAME ;\ |
839 | subq $8,%rsp ;\ | | 839 | subq $8,%rsp ;\ |
840 | pushq $T_ASTFLT /* trap # for doing ASTs */ ;\ | | 840 | pushq $T_ASTFLT /* trap # for doing ASTs */ ;\ |
841 | INTRENTRY ;\ | | 841 | INTRENTRY ;\ |
842 | IDTVEC(resume_ ## name ## num) \ | | 842 | IDTVEC(resume_ ## name ## num) \ |
843 | movq $IREENT_MAGIC,TF_ERR(%rsp) ;\ | | 843 | movq $IREENT_MAGIC,TF_ERR(%rsp) ;\ |
844 | movl %ebx,%r13d ;\ | | 844 | movl %ebx,%r13d ;\ |
845 | movq CPUVAR(ISOURCES) + (num) * 8,%r14 ;\ | | 845 | movq CPUVAR(ISOURCES) + (num) * 8,%r14 ;\ |
846 | 1: \ | | 846 | 1: \ |
847 | pushq %r13 ;\ | | 847 | pushq %r13 ;\ |
848 | movl $num,CPUVAR(ILEVEL) ;\ | | 848 | movl $num,CPUVAR(ILEVEL) ;\ |
849 | STI(si) ;\ | | 849 | STI(si) ;\ |
850 | incl CPUVAR(IDEPTH) ;\ | | 850 | incl CPUVAR(IDEPTH) ;\ |
851 | movq IS_HANDLERS(%r14),%rbx ;\ | | 851 | movq IS_HANDLERS(%r14),%rbx ;\ |
852 | 6: \ | | 852 | 6: \ |
853 | movq IH_ARG(%rbx),%rdi ;\ | | 853 | movq IH_ARG(%rbx),%rdi ;\ |
854 | movq %rsp,%rsi ;\ | | 854 | movq %rsp,%rsi ;\ |
855 | call *IH_FUN(%rbx) /* call it */ ;\ | | 855 | call *IH_FUN(%rbx) /* call it */ ;\ |
856 | movq IH_NEXT(%rbx),%rbx /* next handler in chain */ ;\ | | 856 | movq IH_NEXT(%rbx),%rbx /* next handler in chain */ ;\ |
857 | testq %rbx,%rbx ;\ | | 857 | testq %rbx,%rbx ;\ |
858 | jnz 6b ;\ | | 858 | jnz 6b ;\ |
859 | 5: \ | | 859 | 5: \ |
860 | CLI(si) ;\ | | 860 | CLI(si) ;\ |
861 | unmask(num) /* unmask it in hardware */ ;\ | | 861 | unmask(num) /* unmask it in hardware */ ;\ |
862 | late_ack(num) ;\ | | 862 | late_ack(num) ;\ |
863 | STI(si) ;\ | | 863 | STI(si) ;\ |
864 | jmp _C_LABEL(Xdoreti) /* lower spl and do ASTs */ ;\ | | 864 | jmp _C_LABEL(Xdoreti) /* lower spl and do ASTs */ ;\ |
865 | | | 865 | |
866 | /* The unmask func for Xen events */ | | 866 | /* The unmask func for Xen events */ |
867 | #define hypervisor_asm_unmask(num) \ | | 867 | #define hypervisor_asm_unmask(num) \ |
868 | movq $num,%rdi ;\ | | 868 | movq $num,%rdi ;\ |
869 | call _C_LABEL(hypervisor_enable_ipl) | | 869 | call _C_LABEL(hypervisor_enable_ipl) |
870 | | | 870 | |
871 | XENINTRSTUB(xenev,0,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 871 | XENINTRSTUB(xenev,0,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
872 | XENINTRSTUB(xenev,1,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 872 | XENINTRSTUB(xenev,1,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
873 | XENINTRSTUB(xenev,2,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 873 | XENINTRSTUB(xenev,2,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
874 | XENINTRSTUB(xenev,3,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 874 | XENINTRSTUB(xenev,3,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
875 | XENINTRSTUB(xenev,4,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 875 | XENINTRSTUB(xenev,4,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
876 | XENINTRSTUB(xenev,5,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 876 | XENINTRSTUB(xenev,5,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
877 | XENINTRSTUB(xenev,6,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 877 | XENINTRSTUB(xenev,6,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
878 | XENINTRSTUB(xenev,7,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 878 | XENINTRSTUB(xenev,7,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
879 | XENINTRSTUB(xenev,8,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 879 | XENINTRSTUB(xenev,8,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
880 | XENINTRSTUB(xenev,9,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 880 | XENINTRSTUB(xenev,9,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
881 | XENINTRSTUB(xenev,10,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 881 | XENINTRSTUB(xenev,10,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
882 | XENINTRSTUB(xenev,11,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 882 | XENINTRSTUB(xenev,11,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
883 | XENINTRSTUB(xenev,12,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 883 | XENINTRSTUB(xenev,12,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
884 | XENINTRSTUB(xenev,13,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 884 | XENINTRSTUB(xenev,13,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
885 | XENINTRSTUB(xenev,14,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 885 | XENINTRSTUB(xenev,14,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
886 | XENINTRSTUB(xenev,15,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 886 | XENINTRSTUB(xenev,15,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
887 | XENINTRSTUB(xenev,16,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 887 | XENINTRSTUB(xenev,16,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
888 | XENINTRSTUB(xenev,17,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 888 | XENINTRSTUB(xenev,17,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
889 | XENINTRSTUB(xenev,18,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 889 | XENINTRSTUB(xenev,18,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
890 | XENINTRSTUB(xenev,19,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 890 | XENINTRSTUB(xenev,19,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
891 | XENINTRSTUB(xenev,20,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 891 | XENINTRSTUB(xenev,20,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
892 | XENINTRSTUB(xenev,21,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 892 | XENINTRSTUB(xenev,21,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
893 | XENINTRSTUB(xenev,22,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 893 | XENINTRSTUB(xenev,22,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
894 | XENINTRSTUB(xenev,23,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 894 | XENINTRSTUB(xenev,23,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
895 | XENINTRSTUB(xenev,24,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 895 | XENINTRSTUB(xenev,24,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
896 | XENINTRSTUB(xenev,25,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 896 | XENINTRSTUB(xenev,25,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
897 | XENINTRSTUB(xenev,26,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 897 | XENINTRSTUB(xenev,26,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
898 | XENINTRSTUB(xenev,27,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 898 | XENINTRSTUB(xenev,27,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
899 | XENINTRSTUB(xenev,28,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 899 | XENINTRSTUB(xenev,28,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
900 | XENINTRSTUB(xenev,29,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 900 | XENINTRSTUB(xenev,29,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
901 | XENINTRSTUB(xenev,30,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 901 | XENINTRSTUB(xenev,30,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
902 | XENINTRSTUB(xenev,31,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) | | 902 | XENINTRSTUB(xenev,31,voidop,voidop,voidop,hypervisor_asm_unmask,voidop) |
903 | | | 903 | |
904 | LABEL(xenev_stubs) | | 904 | LABEL(xenev_stubs) |
905 | .quad _C_LABEL(Xrecurse_xenev0), _C_LABEL(Xresume_xenev0) | | 905 | .quad _C_LABEL(Xrecurse_xenev0), _C_LABEL(Xresume_xenev0) |
906 | .quad _C_LABEL(Xrecurse_xenev1) ,_C_LABEL(Xresume_xenev1) | | 906 | .quad _C_LABEL(Xrecurse_xenev1) ,_C_LABEL(Xresume_xenev1) |
907 | .quad _C_LABEL(Xrecurse_xenev2) ,_C_LABEL(Xresume_xenev2) | | 907 | .quad _C_LABEL(Xrecurse_xenev2) ,_C_LABEL(Xresume_xenev2) |
908 | .quad _C_LABEL(Xrecurse_xenev3) ,_C_LABEL(Xresume_xenev3) | | 908 | .quad _C_LABEL(Xrecurse_xenev3) ,_C_LABEL(Xresume_xenev3) |
909 | .quad _C_LABEL(Xrecurse_xenev4) ,_C_LABEL(Xresume_xenev4) | | 909 | .quad _C_LABEL(Xrecurse_xenev4) ,_C_LABEL(Xresume_xenev4) |
910 | .quad _C_LABEL(Xrecurse_xenev5) ,_C_LABEL(Xresume_xenev5) | | 910 | .quad _C_LABEL(Xrecurse_xenev5) ,_C_LABEL(Xresume_xenev5) |
911 | .quad _C_LABEL(Xrecurse_xenev6) ,_C_LABEL(Xresume_xenev6) | | 911 | .quad _C_LABEL(Xrecurse_xenev6) ,_C_LABEL(Xresume_xenev6) |
912 | .quad _C_LABEL(Xrecurse_xenev7) ,_C_LABEL(Xresume_xenev7) | | 912 | .quad _C_LABEL(Xrecurse_xenev7) ,_C_LABEL(Xresume_xenev7) |
913 | .quad _C_LABEL(Xrecurse_xenev8) ,_C_LABEL(Xresume_xenev8) | | 913 | .quad _C_LABEL(Xrecurse_xenev8) ,_C_LABEL(Xresume_xenev8) |
914 | .quad _C_LABEL(Xrecurse_xenev9) ,_C_LABEL(Xresume_xenev9) | | 914 | .quad _C_LABEL(Xrecurse_xenev9) ,_C_LABEL(Xresume_xenev9) |
915 | .quad _C_LABEL(Xrecurse_xenev10), _C_LABEL(Xresume_xenev10) | | 915 | .quad _C_LABEL(Xrecurse_xenev10), _C_LABEL(Xresume_xenev10) |
916 | .quad _C_LABEL(Xrecurse_xenev11), _C_LABEL(Xresume_xenev11) | | 916 | .quad _C_LABEL(Xrecurse_xenev11), _C_LABEL(Xresume_xenev11) |
917 | .quad _C_LABEL(Xrecurse_xenev12), _C_LABEL(Xresume_xenev12) | | 917 | .quad _C_LABEL(Xrecurse_xenev12), _C_LABEL(Xresume_xenev12) |
918 | .quad _C_LABEL(Xrecurse_xenev13), _C_LABEL(Xresume_xenev13) | | 918 | .quad _C_LABEL(Xrecurse_xenev13), _C_LABEL(Xresume_xenev13) |
919 | .quad _C_LABEL(Xrecurse_xenev14), _C_LABEL(Xresume_xenev14) | | 919 | .quad _C_LABEL(Xrecurse_xenev14), _C_LABEL(Xresume_xenev14) |
920 | .quad _C_LABEL(Xrecurse_xenev15), _C_LABEL(Xresume_xenev15) | | 920 | .quad _C_LABEL(Xrecurse_xenev15), _C_LABEL(Xresume_xenev15) |
921 | .quad _C_LABEL(Xrecurse_xenev16), _C_LABEL(Xresume_xenev16) | | 921 | .quad _C_LABEL(Xrecurse_xenev16), _C_LABEL(Xresume_xenev16) |
922 | .quad _C_LABEL(Xrecurse_xenev17), _C_LABEL(Xresume_xenev17) | | 922 | .quad _C_LABEL(Xrecurse_xenev17), _C_LABEL(Xresume_xenev17) |
923 | .quad _C_LABEL(Xrecurse_xenev18), _C_LABEL(Xresume_xenev18) | | 923 | .quad _C_LABEL(Xrecurse_xenev18), _C_LABEL(Xresume_xenev18) |
924 | .quad _C_LABEL(Xrecurse_xenev19), _C_LABEL(Xresume_xenev19) | | 924 | .quad _C_LABEL(Xrecurse_xenev19), _C_LABEL(Xresume_xenev19) |
925 | .quad _C_LABEL(Xrecurse_xenev20), _C_LABEL(Xresume_xenev20) | | 925 | .quad _C_LABEL(Xrecurse_xenev20), _C_LABEL(Xresume_xenev20) |
926 | .quad _C_LABEL(Xrecurse_xenev21), _C_LABEL(Xresume_xenev21) | | 926 | .quad _C_LABEL(Xrecurse_xenev21), _C_LABEL(Xresume_xenev21) |
927 | .quad _C_LABEL(Xrecurse_xenev22), _C_LABEL(Xresume_xenev22) | | 927 | .quad _C_LABEL(Xrecurse_xenev22), _C_LABEL(Xresume_xenev22) |
928 | .quad _C_LABEL(Xrecurse_xenev23), _C_LABEL(Xresume_xenev23) | | 928 | .quad _C_LABEL(Xrecurse_xenev23), _C_LABEL(Xresume_xenev23) |
929 | .quad _C_LABEL(Xrecurse_xenev24), _C_LABEL(Xresume_xenev24) | | 929 | .quad _C_LABEL(Xrecurse_xenev24), _C_LABEL(Xresume_xenev24) |
930 | .quad _C_LABEL(Xrecurse_xenev25), _C_LABEL(Xresume_xenev25) | | 930 | .quad _C_LABEL(Xrecurse_xenev25), _C_LABEL(Xresume_xenev25) |
931 | .quad _C_LABEL(Xrecurse_xenev26), _C_LABEL(Xresume_xenev26) | | 931 | .quad _C_LABEL(Xrecurse_xenev26), _C_LABEL(Xresume_xenev26) |
932 | .quad _C_LABEL(Xrecurse_xenev27), _C_LABEL(Xresume_xenev27) | | 932 | .quad _C_LABEL(Xrecurse_xenev27), _C_LABEL(Xresume_xenev27) |
933 | .quad _C_LABEL(Xrecurse_xenev28), _C_LABEL(Xresume_xenev28) | | 933 | .quad _C_LABEL(Xrecurse_xenev28), _C_LABEL(Xresume_xenev28) |
934 | .quad _C_LABEL(Xrecurse_xenev29), _C_LABEL(Xresume_xenev29) | | 934 | .quad _C_LABEL(Xrecurse_xenev29), _C_LABEL(Xresume_xenev29) |
935 | .quad _C_LABEL(Xrecurse_xenev30), _C_LABEL(Xresume_xenev30) | | 935 | .quad _C_LABEL(Xrecurse_xenev30), _C_LABEL(Xresume_xenev30) |
936 | .quad _C_LABEL(Xrecurse_xenev31), _C_LABEL(Xresume_xenev31) | | 936 | .quad _C_LABEL(Xrecurse_xenev31), _C_LABEL(Xresume_xenev31) |
937 | END(xenev_stubs) | | 937 | END(xenev_stubs) |
938 | | | 938 | |
939 | /* | | 939 | /* |
940 | * Xen callbacks | | 940 | * Xen callbacks |
941 | */ | | 941 | */ |
942 | | | 942 | |
943 | /* Hypervisor callback */ | | 943 | /* Hypervisor callback */ |
944 | NENTRY(hypervisor_callback) | | 944 | NENTRY(hypervisor_callback) |
945 | movq (%rsp),%rcx | | 945 | movq (%rsp),%rcx |
946 | movq 8(%rsp),%r11 | | 946 | movq 8(%rsp),%r11 |
947 | addq $16,%rsp | | 947 | addq $16,%rsp |
948 | pushq $0 /* Dummy error code */ | | 948 | pushq $0 /* Dummy error code */ |
949 | pushq $T_ASTFLT | | 949 | pushq $T_ASTFLT |
950 | INTRENTRY | | 950 | INTRENTRY |
951 | /* sti?? */ | | 951 | /* sti?? */ |
952 | movq %rsp,%rdi | | 952 | movq %rsp,%rdi |
953 | subq $8,%rdi; /* don't forget if_ppl */ | | 953 | subq $8,%rdi; /* don't forget if_ppl */ |
954 | call do_hypervisor_callback | | 954 | call do_hypervisor_callback |
955 | testb $SEL_RPL,TF_CS(%rsp) | | 955 | testb $SEL_RPL,TF_CS(%rsp) |
956 | jnz doreti_checkast | | 956 | jnz doreti_checkast |
957 | 1: | | 957 | 1: |
958 | INTRFASTEXIT | | 958 | INTRFASTEXIT |
959 | END(hypervisor_callback) | | 959 | END(hypervisor_callback) |
960 | | | 960 | |
961 | /* Panic? */ | | 961 | /* Panic? */ |
962 | NENTRY(failsafe_callback) | | 962 | NENTRY(failsafe_callback) |
963 | movq (%rsp),%rcx | | 963 | movq (%rsp),%rcx |
964 | movq 8(%rsp),%r11 | | 964 | movq 8(%rsp),%r11 |
965 | addq $16,%rsp | | 965 | addq $16,%rsp |
966 | pushq $0 | | 966 | pushq $0 |
967 | pushq $T_ASTFLT | | 967 | pushq $T_ASTFLT |
968 | INTRENTRY | | 968 | INTRENTRY |
969 | movq %rsp,%rdi | | 969 | movq %rsp,%rdi |
970 | subq $8,%rdi; /* don't forget if_ppl */ | | 970 | subq $8,%rdi; /* don't forget if_ppl */ |
971 | call xen_failsafe_handler | | 971 | call xen_failsafe_handler |
972 | INTRFASTEXIT | | 972 | INTRFASTEXIT |
973 | /* jmp HYPERVISOR_iret */ | | 973 | /* jmp HYPERVISOR_iret */ |
974 | END(failsafe_callback) | | 974 | END(failsafe_callback) |
975 | | | 975 | |
976 | #endif /* !XEN */ | | 976 | #endif /* !XEN */ |