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