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.code 17 18TRAP_ENTRY HalpClockInterrupt, (TF_VOLATILES OR TF_SEND_EOI) 19TRAP_ENTRY HalpProfileInterrupt, (TF_VOLATILES OR TF_SEND_EOI) 20 21PUBLIC ApicSpuriousService 22ApicSpuriousService: 23 iretq 24 25#else 26#include <ks386.inc> 27#include <internal/i386/asmmacro.S> 28.code 29 30TRAP_ENTRY HalpClockInterrupt, KI_PUSH_FAKE_ERROR_CODE 31TRAP_ENTRY HalpProfileInterrupt, KI_PUSH_FAKE_ERROR_CODE 32TRAP_ENTRY HalpTrap0D, 0 33TRAP_ENTRY HalpApcInterrupt, KI_PUSH_FAKE_ERROR_CODE 34TRAP_ENTRY HalpDispatchInterrupt, KI_PUSH_FAKE_ERROR_CODE 35 36PUBLIC _ApicSpuriousService 37_ApicSpuriousService: 38 iret 39 40#endif 41 42 43 44 45 46END 47