* Sync up to trunk head (r65426).
[reactos.git] / ntoskrnl / ke / powerpc / exp.c
1 /*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: ntoskrnl/ke/i386/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 VOID
21 INIT_FUNCTION
22 NTAPI
23 KeInitExceptions(VOID)
24 {
25 }
26
27 ULONG
28 NTAPI
29 KiEspFromTrapFrame(IN PKTRAP_FRAME TrapFrame)
30 {
31 return 0;
32 }
33
34 VOID
35 NTAPI
36 KiEspToTrapFrame(IN PKTRAP_FRAME TrapFrame,
37 IN ULONG Esp)
38 {
39 }
40
41 ULONG
42 NTAPI
43 KiSsFromTrapFrame(IN PKTRAP_FRAME TrapFrame)
44 {
45 return 0;
46 }
47
48 VOID
49 NTAPI
50 KiSsToTrapFrame(IN PKTRAP_FRAME TrapFrame,
51 IN ULONG Ss)
52 {
53 }
54
55 USHORT
56 NTAPI
57 KiTagWordFnsaveToFxsave(USHORT TagWord)
58 {
59 return 0;
60 }
61
62 VOID
63 NTAPI
64 KeContextToTrapFrame(IN PCONTEXT Context,
65 IN OUT PKEXCEPTION_FRAME ExceptionFrame,
66 IN OUT PKTRAP_FRAME TrapFrame,
67 IN ULONG ContextFlags,
68 IN KPROCESSOR_MODE PreviousMode)
69 {
70 }
71
72 VOID
73 NTAPI
74 KeTrapFrameToContext(IN PKTRAP_FRAME TrapFrame,
75 IN PKEXCEPTION_FRAME ExceptionFrame,
76 IN OUT PCONTEXT Context)
77 {
78 }
79
80 VOID
81 NTAPI
82 KiDispatchException(IN PEXCEPTION_RECORD ExceptionRecord,
83 IN PKEXCEPTION_FRAME ExceptionFrame,
84 IN PKTRAP_FRAME TrapFrame,
85 IN KPROCESSOR_MODE PreviousMode,
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 */
97 NTSTATUS
98 NTAPI
99 KeRaiseUserException(IN NTSTATUS ExceptionCode)
100 {
101 return STATUS_SUCCESS;
102 }
103