44 lines
820 B
C
44 lines
820 B
C
/**
|
|
* PROJECT: ExectOS
|
|
* COPYRIGHT: See COPYING.md in the top level directory
|
|
* FILE: xtoskrnl/ar/amd64/traps.c
|
|
* DESCRIPTION: AMD64 system traps
|
|
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
|
*/
|
|
|
|
#include <xtos.h>
|
|
|
|
|
|
XTCDECL
|
|
VOID
|
|
ArpHandleSystemCall32()
|
|
{
|
|
DebugPrint(L"Handled 32-bit system call!\n");
|
|
}
|
|
|
|
XTCDECL
|
|
VOID
|
|
ArpHandleSystemCall64()
|
|
{
|
|
DebugPrint(L"Handled 64-bit system call!\n");
|
|
}
|
|
|
|
/**
|
|
* Handles a trap.
|
|
*
|
|
* @param Registers
|
|
* Supplies a structure containing the values of all general-purpose registers.
|
|
*
|
|
* @return This routine does not return any value.
|
|
*
|
|
* @since XT 1.0
|
|
*/
|
|
XTCDECL
|
|
VOID
|
|
ArpHandleTrap(EXCEPTION_REGISTERS Registers)
|
|
{
|
|
DebugPrint(L"I came, I saw.\n");
|
|
DebugPrint(L"Vector: %d\n", Registers.Rip);
|
|
for(;;);
|
|
}
|