ReactOS  0.4.15-dev-985-gd905dd5
exp.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Kernel
3  * LICENSE: GPL - See COPYING in the top level directory
4  * FILE: ntoskrnl/ke/powerpc/exp.c
5  * PURPOSE: Exception Dispatching and Context<->Trap Frame Conversion
6  * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7  * Gregor Anich
8  * Skywing (skywing@valhallalegends.com)
9  */
10 
11 /* INCLUDES ******************************************************************/
12 
13 #include <ntoskrnl.h>
14 #define NDEBUG
15 #include <debug.h>
16 #include <ppcmmu/mmu.h>
17 
18 /* FUNCTIONS *****************************************************************/
19 
20 INIT_FUNCTION
21 VOID
22 NTAPI
24 {
25 }
26 
27 ULONG
28 NTAPI
30 {
31  return 0;
32 }
33 
34 VOID
35 NTAPI
37  IN ULONG Esp)
38 {
39 }
40 
41 ULONG
42 NTAPI
44 {
45  return 0;
46 }
47 
48 VOID
49 NTAPI
51  IN ULONG Ss)
52 {
53 }
54 
55 USHORT
56 NTAPI
58 {
59  return 0;
60 }
61 
62 VOID
63 NTAPI
65  IN OUT PKEXCEPTION_FRAME ExceptionFrame,
66  IN OUT PKTRAP_FRAME TrapFrame,
67  IN ULONG ContextFlags,
69 {
70 }
71 
72 VOID
73 NTAPI
75  IN PKEXCEPTION_FRAME ExceptionFrame,
77 {
78 }
79 
80 VOID
81 NTAPI
83  IN PKEXCEPTION_FRAME ExceptionFrame,
84  IN PKTRAP_FRAME TrapFrame,
86  IN BOOLEAN FirstChance)
87 {
88  DbgPrint("EXCEPTION! Record %08x Frame %08x\n",
89  ExceptionRecord, ExceptionFrame);
90  MmuDumpMap();
91  KeBugCheck(KMODE_EXCEPTION_NOT_HANDLED);
92 }
93 
94 /*
95  * @implemented
96  */
98 NTAPI
100 {
101  return STATUS_SUCCESS;
102 }
103 
_Inout_ PIRP _In_ NTSTATUS ExceptionCode
Definition: cdprocs.h:1772
#define IN
Definition: typedefs.h:39
#define DbgPrint
Definition: loader.c:25
LONG NTSTATUS
Definition: precomp.h:26
VOID NTAPI KiSsToTrapFrame(IN PKTRAP_FRAME TrapFrame, IN ULONG Ss)
Definition: exp.c:242
VOID NTAPI KeTrapFrameToContext(IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame, IN OUT PCONTEXT Context)
Definition: exp.c:86
INIT_FUNCTION VOID NTAPI KeInitExceptions(VOID)
Definition: exp.c:23
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
DECLSPEC_NORETURN VOID NTAPI KeBugCheck(ULONG BugCheckCode)
Definition: bug.c:1431
unsigned char BOOLEAN
_In_ KPROCESSOR_MODE PreviousMode
Definition: sefuncs.h:103
USHORT NTAPI KiTagWordFnsaveToFxsave(USHORT TagWord)
Definition: exp.c:263
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
ULONG NTAPI KiEspFromTrapFrame(IN PKTRAP_FRAME TrapFrame)
Definition: exp.c:137
VOID NTAPI KiEspToTrapFrame(IN PKTRAP_FRAME TrapFrame, IN ULONG Esp)
Definition: exp.c:164
unsigned short USHORT
Definition: pedump.c:61
NTSTATUS NTAPI KeRaiseUserException(_In_ NTSTATUS ExceptionCode)
Definition: exp.c:266
VOID NTAPI KiDispatchException(IN PEXCEPTION_RECORD ExceptionRecord, IN PKEXCEPTION_FRAME ExceptionFrame, IN PKTRAP_FRAME TrapFrame, IN KPROCESSOR_MODE PreviousMode, IN BOOLEAN FirstChance)
Definition: exp.c:151
#define OUT
Definition: typedefs.h:40
static void MmuDumpMap()
Definition: mmu.h:262
unsigned int ULONG
Definition: retypes.h:1
ULONG NTAPI KiSsFromTrapFrame(IN PKTRAP_FRAME TrapFrame)
Definition: exp.c:220
return STATUS_SUCCESS
Definition: btrfs.c:3014
VOID NTAPI KeContextToTrapFrame(IN PCONTEXT Context, IN OUT PKEXCEPTION_FRAME ExceptionFrame, IN OUT PKTRAP_FRAME TrapFrame, IN ULONG ContextFlags, IN KPROCESSOR_MODE PreviousMode)
Definition: exp.c:19