wut  1.0.0-beta9
Wii U Toolchain
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 {
25 
26 typedef enum OSExceptionType
27 {
44 
47  OSExceptionCallbackFn callback);
48 
51  OSExceptionType exceptionType,
52  OSExceptionCallbackFn callback);
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
OSExceptionType
OSExceptionType
Definition: exception.h:26
OSSetExceptionCallback
OSExceptionCallbackFn OSSetExceptionCallback(OSExceptionType exceptionType, OSExceptionCallbackFn callback)
OS_EXCEPTION_MODE_GLOBAL_ALL_CORES
@ OS_EXCEPTION_MODE_GLOBAL_ALL_CORES
Definition: exception.h:23
OSExceptionCallbackFn
BOOL(* OSExceptionCallbackFn)(OSContext *context)
Definition: exception.h:15
OS_EXCEPTION_TYPE_SYSTEM_RESET
@ OS_EXCEPTION_TYPE_SYSTEM_RESET
Definition: exception.h:28
OS_EXCEPTION_TYPE_EXTERNAL_INTERRUPT
@ OS_EXCEPTION_TYPE_EXTERNAL_INTERRUPT
Definition: exception.h:32
OS_EXCEPTION_TYPE_PERFORMANCE_MONITOR
@ OS_EXCEPTION_TYPE_PERFORMANCE_MONITOR
Definition: exception.h:39
OS_EXCEPTION_MODE_GLOBAL
@ OS_EXCEPTION_MODE_GLOBAL
Definition: exception.h:21
OS_EXCEPTION_TYPE_SYSTEM_INTERRUPT
@ OS_EXCEPTION_TYPE_SYSTEM_INTERRUPT
Definition: exception.h:41
OS_EXCEPTION_TYPE_DECREMENTER
@ OS_EXCEPTION_TYPE_DECREMENTER
Definition: exception.h:36
OS_EXCEPTION_TYPE_ALIGNMENT
@ OS_EXCEPTION_TYPE_ALIGNMENT
Definition: exception.h:33
context.h
OS_EXCEPTION_TYPE_ICI
@ OS_EXCEPTION_TYPE_ICI
Definition: exception.h:42
OSContext
struct OSContext OSContext
Definition: context.h:15
OS_EXCEPTION_TYPE_SYSTEM_CALL
@ OS_EXCEPTION_TYPE_SYSTEM_CALL
Definition: exception.h:37
OS_EXCEPTION_TYPE_BREAKPOINT
@ OS_EXCEPTION_TYPE_BREAKPOINT
Definition: exception.h:40
wut.h
OSSetExceptionCallbackEx
OSExceptionCallbackFn OSSetExceptionCallbackEx(OSExceptionMode mode, OSExceptionType exceptionType, OSExceptionCallbackFn callback)
OS_EXCEPTION_TYPE_TRACE
@ OS_EXCEPTION_TYPE_TRACE
Definition: exception.h:38
OS_EXCEPTION_TYPE_ISI
@ OS_EXCEPTION_TYPE_ISI
Definition: exception.h:31
OS_EXCEPTION_TYPE_DSI
@ OS_EXCEPTION_TYPE_DSI
Definition: exception.h:30
OS_EXCEPTION_MODE_THREAD
@ OS_EXCEPTION_MODE_THREAD
Definition: exception.h:20
OS_EXCEPTION_TYPE_PROGRAM
@ OS_EXCEPTION_TYPE_PROGRAM
Definition: exception.h:34
OS_EXCEPTION_TYPE_FLOATING_POINT
@ OS_EXCEPTION_TYPE_FLOATING_POINT
Definition: exception.h:35
OSExceptionMode
OSExceptionMode
Definition: exception.h:17
OS_EXCEPTION_TYPE_MACHINE_CHECK
@ OS_EXCEPTION_TYPE_MACHINE_CHECK
Definition: exception.h:29
BOOL
int32_t BOOL
Definition: wut_types.h:4
OS_EXCEPTION_MODE_SYSTEM
@ OS_EXCEPTION_MODE_SYSTEM
Definition: exception.h:19
OS_EXCEPTION_MODE_THREAD_ALL_CORES
@ OS_EXCEPTION_MODE_THREAD_ALL_CORES
Definition: exception.h:22