[HAL]
[reactos.git] / reactos / hal / halx86 / apic / apictrap.S
1 /*
2 * FILE: hal/halx86/apic/apictrap.S
3 * COPYRIGHT: See COPYING in the top level directory
4 * PURPOSE: System Traps, Entrypoints and Exitpoints
5 * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
6 * NOTE: See asmmacro.S for the shared entry/exit code.
7 */
8
9 /* INCLUDES ******************************************************************/
10
11 #include <asm.inc>
12
13 #ifdef _M_AMD64
14 #include <ksamd64.inc>
15 #include <trapamd64.inc>
16 #define KI_PUSH_FAKE_ERROR_CODE TF_PUSH_FAKE_ERROR_CODE
17 PUBLIC ApicSpuriousService
18 #else
19 #include <ks386.inc>
20 #include <internal/i386/asmmacro.S>
21 PUBLIC _ApicSpuriousService
22 #endif
23
24 .code
25
26 #ifndef _M_AMD64
27 TRAP_ENTRY HalpTrap0D, 0
28 TRAP_ENTRY HalpApcInterrupt, KI_PUSH_FAKE_ERROR_CODE
29 TRAP_ENTRY HalpDispatchInterrupt, KI_PUSH_FAKE_ERROR_CODE
30 #endif
31 TRAP_ENTRY HalpClockInterrupt, KI_PUSH_FAKE_ERROR_CODE
32 TRAP_ENTRY HalpProfileInterrupt, KI_PUSH_FAKE_ERROR_CODE
33
34 FUNC ApicSpuriousService
35 #ifdef _M_AMD64
36 .ENDPROLOG
37 #endif
38 int 3
39 iret
40 ENDFUNC ApicSpuriousService
41
42
43 END