2009-10-12 03:35:35 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Kernel
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
2015-10-04 11:54:25 +00:00
|
|
|
* FILE: ntoskrnl/ke/powerpc/exp.c
|
2009-10-12 03:35:35 +00:00
|
|
|
* PURPOSE: Exception Dispatching and Context<->Trap Frame Conversion
|
|
|
|
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
|
|
|
|
* Gregor Anich
|
|
|
|
* Skywing (skywing@valhallalegends.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
#include <ntoskrnl.h>
|
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
#include <ppcmmu/mmu.h>
|
|
|
|
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
|
|
|
|
VOID
|
|
|
|
INIT_FUNCTION
|
|
|
|
NTAPI
|
|
|
|
KeInitExceptions(VOID)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KiEspFromTrapFrame(IN PKTRAP_FRAME TrapFrame)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KiEspToTrapFrame(IN PKTRAP_FRAME TrapFrame,
|
|
|
|
IN ULONG Esp)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KiSsFromTrapFrame(IN PKTRAP_FRAME TrapFrame)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KiSsToTrapFrame(IN PKTRAP_FRAME TrapFrame,
|
|
|
|
IN ULONG Ss)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
|
|
|
KiTagWordFnsaveToFxsave(USHORT TagWord)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeContextToTrapFrame(IN PCONTEXT Context,
|
|
|
|
IN OUT PKEXCEPTION_FRAME ExceptionFrame,
|
|
|
|
IN OUT PKTRAP_FRAME TrapFrame,
|
|
|
|
IN ULONG ContextFlags,
|
|
|
|
IN KPROCESSOR_MODE PreviousMode)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeTrapFrameToContext(IN PKTRAP_FRAME TrapFrame,
|
|
|
|
IN PKEXCEPTION_FRAME ExceptionFrame,
|
|
|
|
IN OUT PCONTEXT Context)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KiDispatchException(IN PEXCEPTION_RECORD ExceptionRecord,
|
|
|
|
IN PKEXCEPTION_FRAME ExceptionFrame,
|
|
|
|
IN PKTRAP_FRAME TrapFrame,
|
|
|
|
IN KPROCESSOR_MODE PreviousMode,
|
|
|
|
IN BOOLEAN FirstChance)
|
|
|
|
{
|
|
|
|
DbgPrint("EXCEPTION! Record %08x Frame %08x\n",
|
|
|
|
ExceptionRecord, ExceptionFrame);
|
|
|
|
MmuDumpMap();
|
2009-10-21 17:52:11 +00:00
|
|
|
KeBugCheck(KMODE_EXCEPTION_NOT_HANDLED);
|
2009-10-12 03:35:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeRaiseUserException(IN NTSTATUS ExceptionCode)
|
|
|
|
{
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
}
|
|
|
|
|