Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSError.h
Go to the documentation of this file.
1
#ifndef OSERROR_H
2
#define OSERROR_H
3
4
#include "
dolphin/types.h
"
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
typedef
struct
OSContext
OSContext
;
11
12
extern
u32
__OSFpscrEnableBits
;
13
typedef
u16
OSError
;
14
15
#define OS_ERROR_SYSTEM_RESET 0
16
#define OS_ERROR_MACHINE_CHECK 1
17
#define OS_ERROR_DSI 2
18
#define OS_ERROR_ISI 3
19
#define OS_ERROR_INTERRUPT 4
20
#define OS_ERROR_ALIGNMENT 5
21
#define OS_ERROR_PROGRAM 6
22
#define OS_ERROR_FLOATING_POINT 7
23
#define OS_ERROR_DECREMENTER 8
24
#define OS_ERROR_SYSTEM_CALL 9
25
#define OS_ERROR_TRACE 10
26
#define OS_ERROR_PERFORMANCE_MONITOR 11
27
#define OS_ERROR_BREAKPOINT 12
28
#define OS_ERROR_RESERVED 13
29
#define OS_ERROR_THERMAL_INTERRUPT 14
30
#define OS_ERROR_MEMORY_PROTECTION 15
31
#define OS_ERROR_FLOATING_POINT_EXCEPTION 16
32
33
typedef
enum
{
34
EXCEPTION_SYSTEM_RESET
,
35
EXCEPTION_MACHINE_CHECK
,
36
EXCEPTION_DSI
,
37
EXCEPTION_ISI
,
38
EXCEPTION_EXTERNAL_INTERRUPT
,
39
EXCEPTION_ALIGNMENT
,
40
EXCEPTION_PROGRAM
,
41
EXCEPTION_FLOATING_POINT
,
42
EXCEPTION_DECREMENTER
,
43
EXCEPTION_SYSTEM_CALL
,
44
EXCEPTION_TRACE
,
45
EXCEPTION_PERFORMANCE_MONITOR
,
46
EXCEPTION_BREAKPOINT
,
47
EXCEPTION_RESERVED
,
48
EXCEPTION_THERMAL_INTERRUPT
,
49
EXCEPTION_MEMORY_PROTECTION
,
50
EXCEPTION_FLOATING_POINT_EXCEPTION
,
51
}
OSException
;
52
53
typedef
u8
__OSException
;
54
55
typedef
void
(*
OSErrorHandler
)(
OSError
error,
OSContext
*
context
,
u32
,
u32
);
56
// Using this type for the C++ handlers makes stuff not match
57
typedef
void
(*
OSErrorHandlerEx
)(
OSError
error,
OSContext
*
context
,
u32
,
u32
, ...);
58
59
OSErrorHandler
OSSetErrorHandler
(
OSError
error,
OSErrorHandler
handler);
60
void
__OSUnhandledException
(
__OSException
exception
,
OSContext
*
context
,
u32
dsisr,
u32
dar);
61
62
#ifdef __cplusplus
63
};
64
#endif
65
66
#endif
/* OSERROR_H */
context
static OSContext context
Definition
JUTException.cpp:233
OSErrorHandler
void(* OSErrorHandler)(OSError error, OSContext *context, u32, u32)
Definition
OSError.h:55
OSException
OSException
Definition
OSError.h:33
EXCEPTION_FLOATING_POINT
@ EXCEPTION_FLOATING_POINT
Definition
OSError.h:41
EXCEPTION_ISI
@ EXCEPTION_ISI
Definition
OSError.h:37
EXCEPTION_MEMORY_PROTECTION
@ EXCEPTION_MEMORY_PROTECTION
Definition
OSError.h:49
EXCEPTION_MACHINE_CHECK
@ EXCEPTION_MACHINE_CHECK
Definition
OSError.h:35
EXCEPTION_ALIGNMENT
@ EXCEPTION_ALIGNMENT
Definition
OSError.h:39
EXCEPTION_EXTERNAL_INTERRUPT
@ EXCEPTION_EXTERNAL_INTERRUPT
Definition
OSError.h:38
EXCEPTION_SYSTEM_CALL
@ EXCEPTION_SYSTEM_CALL
Definition
OSError.h:43
EXCEPTION_TRACE
@ EXCEPTION_TRACE
Definition
OSError.h:44
EXCEPTION_PROGRAM
@ EXCEPTION_PROGRAM
Definition
OSError.h:40
EXCEPTION_RESERVED
@ EXCEPTION_RESERVED
Definition
OSError.h:47
EXCEPTION_DSI
@ EXCEPTION_DSI
Definition
OSError.h:36
EXCEPTION_FLOATING_POINT_EXCEPTION
@ EXCEPTION_FLOATING_POINT_EXCEPTION
Definition
OSError.h:50
EXCEPTION_PERFORMANCE_MONITOR
@ EXCEPTION_PERFORMANCE_MONITOR
Definition
OSError.h:45
EXCEPTION_DECREMENTER
@ EXCEPTION_DECREMENTER
Definition
OSError.h:42
EXCEPTION_SYSTEM_RESET
@ EXCEPTION_SYSTEM_RESET
Definition
OSError.h:34
EXCEPTION_BREAKPOINT
@ EXCEPTION_BREAKPOINT
Definition
OSError.h:46
EXCEPTION_THERMAL_INTERRUPT
@ EXCEPTION_THERMAL_INTERRUPT
Definition
OSError.h:48
OSError
u16 OSError
Definition
OSError.h:13
__OSFpscrEnableBits
u32 __OSFpscrEnableBits
__OSUnhandledException
void __OSUnhandledException(__OSException exception, OSContext *context, u32 dsisr, u32 dar)
Definition
OSError.c:124
__OSException
u8 __OSException
Definition
OSError.h:53
OSSetErrorHandler
OSErrorHandler OSSetErrorHandler(OSError error, OSErrorHandler handler)
Definition
OSError.c:58
OSErrorHandlerEx
void(* OSErrorHandlerEx)(OSError error, OSContext *context, u32, u32,...)
Definition
OSError.h:57
cLib_calcTimer
T cLib_calcTimer(T *value)
Definition
c_lib.h:74
OSContext
Definition
OSContext.h:137
exception
Definition
fdlibm.h:73
types.h
u32
unsigned long u32
Definition
types.h:10
u16
unsigned short u16
Definition
types.h:9
u8
unsigned char u8
Definition
types.h:8
include
dolphin
os
OSError.h
Generated by
1.9.8