2011-09-06 21:01:49 +00:00
|
|
|
/*
|
|
|
|
* FILE: hal/halx86/apic/apictrap.S
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PURPOSE: System Traps, Entrypoints and Exitpoints
|
|
|
|
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
|
|
|
|
* NOTE: See asmmacro.S for the shared entry/exit code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
#include <asm.inc>
|
|
|
|
|
|
|
|
#ifdef _M_AMD64
|
|
|
|
#include <ksamd64.inc>
|
2011-09-07 21:41:50 +00:00
|
|
|
#include <trapamd64.inc>
|
2011-09-13 14:44:47 +00:00
|
|
|
.code
|
|
|
|
|
2011-09-16 09:39:41 +00:00
|
|
|
TRAP_ENTRY HalpClockInterrupt, (TF_VOLATILES OR TF_SEND_EOI)
|
|
|
|
TRAP_ENTRY HalpProfileInterrupt, (TF_VOLATILES OR TF_SEND_EOI)
|
2011-09-13 14:44:47 +00:00
|
|
|
|
2011-09-06 21:01:49 +00:00
|
|
|
PUBLIC ApicSpuriousService
|
2011-09-13 14:44:47 +00:00
|
|
|
ApicSpuriousService:
|
2020-02-02 08:45:17 +00:00
|
|
|
iretq
|
2011-09-13 14:44:47 +00:00
|
|
|
|
2011-09-06 21:01:49 +00:00
|
|
|
#else
|
|
|
|
#include <ks386.inc>
|
2011-09-07 21:41:50 +00:00
|
|
|
#include <internal/i386/asmmacro.S>
|
2011-09-06 21:01:49 +00:00
|
|
|
.code
|
|
|
|
|
2011-09-13 14:44:47 +00:00
|
|
|
TRAP_ENTRY HalpClockInterrupt, KI_PUSH_FAKE_ERROR_CODE
|
|
|
|
TRAP_ENTRY HalpProfileInterrupt, KI_PUSH_FAKE_ERROR_CODE
|
2011-09-06 21:01:49 +00:00
|
|
|
TRAP_ENTRY HalpTrap0D, 0
|
2011-09-07 21:41:50 +00:00
|
|
|
TRAP_ENTRY HalpApcInterrupt, KI_PUSH_FAKE_ERROR_CODE
|
2011-09-06 21:01:49 +00:00
|
|
|
TRAP_ENTRY HalpDispatchInterrupt, KI_PUSH_FAKE_ERROR_CODE
|
2011-09-09 21:10:07 +00:00
|
|
|
|
2011-09-13 14:44:47 +00:00
|
|
|
PUBLIC _ApicSpuriousService
|
|
|
|
_ApicSpuriousService:
|
|
|
|
iret
|
|
|
|
|
2011-09-07 21:41:50 +00:00
|
|
|
#endif
|
2011-09-06 21:01:49 +00:00
|
|
|
|
2011-09-13 14:44:47 +00:00
|
|
|
|
|
|
|
|
2011-09-06 21:01:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
END
|