wut
1.0.0-beta8
Wii U Toolchain
include
coreinit
exception.h
Go to the documentation of this file.
1
#pragma once
2
#include <
wut.h
>
3
#include "
context.h
"
4
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
typedef
BOOL
(*
OSExceptionCallbackFn
)(
OSContext
*context);
16
17
typedef
enum
OSExceptionMode
18
{
19
OS_EXCEPTION_MODE_SYSTEM
= 0,
20
OS_EXCEPTION_MODE_THREAD
= 1,
21
OS_EXCEPTION_MODE_GLOBAL
= 2,
22
OS_EXCEPTION_MODE_THREAD_ALL_CORES
= 3,
23
OS_EXCEPTION_MODE_GLOBAL_ALL_CORES
= 4,
24
}
OSExceptionMode
;
25
26
typedef
enum
OSExceptionType
27
{
28
OS_EXCEPTION_TYPE_SYSTEM_RESET
= 0,
29
OS_EXCEPTION_TYPE_MACHINE_CHECK
= 1,
30
OS_EXCEPTION_TYPE_DSI
= 2,
31
OS_EXCEPTION_TYPE_ISI
= 3,
32
OS_EXCEPTION_TYPE_EXTERNAL_INTERRUPT
= 4,
33
OS_EXCEPTION_TYPE_ALIGNMENT
= 5,
34
OS_EXCEPTION_TYPE_PROGRAM
= 6,
35
OS_EXCEPTION_TYPE_FLOATING_POINT
= 7,
36
OS_EXCEPTION_TYPE_DECREMENTER
= 8,
37
OS_EXCEPTION_TYPE_SYSTEM_CALL
= 9,
38
OS_EXCEPTION_TYPE_TRACE
= 10,
39
OS_EXCEPTION_TYPE_PERFORMANCE_MONITOR
= 11,
40
OS_EXCEPTION_TYPE_BREAKPOINT
= 12,
41
OS_EXCEPTION_TYPE_SYSTEM_INTERRUPT
= 13,
42
OS_EXCEPTION_TYPE_ICI
= 14,
43
}
OSExceptionType
;
44
45
OSExceptionCallbackFn
46
OSSetExceptionCallback
(
OSExceptionType
exceptionType,
47
OSExceptionCallbackFn
callback);
48
49
OSExceptionCallbackFn
50
OSSetExceptionCallbackEx
(
OSExceptionMode
mode,
51
OSExceptionType
exceptionType,
52
OSExceptionCallbackFn
callback);
53
54
#ifdef __cplusplus
55
}
56
#endif
57
OS_EXCEPTION_MODE_GLOBAL_ALL_CORES
Definition:
exception.h:23
OS_EXCEPTION_TYPE_DECREMENTER
Definition:
exception.h:36
OS_EXCEPTION_TYPE_SYSTEM_INTERRUPT
Definition:
exception.h:41
OS_EXCEPTION_TYPE_EXTERNAL_INTERRUPT
Definition:
exception.h:32
OS_EXCEPTION_TYPE_TRACE
Definition:
exception.h:38
OS_EXCEPTION_TYPE_ICI
Definition:
exception.h:42
OSExceptionMode
OSExceptionMode
Definition:
exception.h:17
OS_EXCEPTION_TYPE_PERFORMANCE_MONITOR
Definition:
exception.h:39
OS_EXCEPTION_TYPE_DSI
Definition:
exception.h:30
OSSetExceptionCallback
OSExceptionCallbackFn OSSetExceptionCallback(OSExceptionType exceptionType, OSExceptionCallbackFn callback)
OS_EXCEPTION_TYPE_BREAKPOINT
Definition:
exception.h:40
OSExceptionType
OSExceptionType
Definition:
exception.h:26
OS_EXCEPTION_TYPE_SYSTEM_CALL
Definition:
exception.h:37
OS_EXCEPTION_TYPE_ALIGNMENT
Definition:
exception.h:33
wut.h
OSExceptionCallbackFn
BOOL(* OSExceptionCallbackFn)(OSContext *context)
Definition:
exception.h:15
OS_EXCEPTION_TYPE_ISI
Definition:
exception.h:31
OS_EXCEPTION_TYPE_MACHINE_CHECK
Definition:
exception.h:29
OSContext
struct OSContext OSContext
Definition:
context.h:15
OS_EXCEPTION_MODE_THREAD
Definition:
exception.h:20
OS_EXCEPTION_TYPE_PROGRAM
Definition:
exception.h:34
BOOL
int32_t BOOL
Definition:
wut_types.h:4
OSSetExceptionCallbackEx
OSExceptionCallbackFn OSSetExceptionCallbackEx(OSExceptionMode mode, OSExceptionType exceptionType, OSExceptionCallbackFn callback)
OS_EXCEPTION_MODE_SYSTEM
Definition:
exception.h:19
OS_EXCEPTION_TYPE_SYSTEM_RESET
Definition:
exception.h:28
OS_EXCEPTION_MODE_THREAD_ALL_CORES
Definition:
exception.h:22
OS_EXCEPTION_MODE_GLOBAL
Definition:
exception.h:21
OS_EXCEPTION_TYPE_FLOATING_POINT
Definition:
exception.h:35
context.h
Generated by
1.8.15