SSBM Decomp
Loading...
Searching...
No Matches
OSError.h
Go to the documentation of this file.
1
#ifndef DOLPHIN_OS_OSERROR_H
2
#define DOLPHIN_OS_OSERROR_H
3
4
#include <
platform.h
>
5
6
#include <
dolphin/os/OSContext.h
>
7
8
#define OS_ERROR_SYSTEM_RESET 0
9
#define OS_ERROR_MACHINE_CHECK 1
10
#define OS_ERROR_DSI 2
11
#define OS_ERROR_ISI 3
12
#define OS_ERROR_EXTERNAL_INTERRUPT 4
13
#define OS_ERROR_ALIGNMENT 5
14
#define OS_ERROR_PROGRAM 6
15
#define OS_ERROR_FLOATING_POINT 7
16
#define OS_ERROR_DECREMENTER 8
17
#define OS_ERROR_SYSTEM_CALL 9
18
#define OS_ERROR_TRACE 10
19
#define OS_ERROR_PERFORMACE_MONITOR 11
20
#define OS_ERROR_BREAKPOINT 12
21
#define OS_ERROR_SYSTEM_INTERRUPT 13
22
#define OS_ERROR_THERMAL_INTERRUPT 14
23
#define OS_ERROR_PROTECTION 15
24
#define OS_ERROR_MAX (OS_ERROR_THERMAL_INTERRUPT + 1)
25
26
typedef
u16
OSError
;
27
typedef
void (*
OSErrorHandler
)(
OSError
error
,
OSContext
* context, ...);
28
29
OSErrorHandler
OSSetErrorHandler
(
OSError
error
,
OSErrorHandler
handler);
30
void
__OSUnhandledException
(
u8
error
,
OSContext
* context,
u32
dsisr,
u32
dar);
31
ATTRIBUTE_NORETURN
void
OSPanic
(
char
* file,
int
line,
char
* msg, ...);
32
void
OSReport
(
char
*, ...);
33
34
#endif
OSContext.h
__OSUnhandledException
void __OSUnhandledException(u8 error, OSContext *context, u32 dsisr, u32 dar)
Definition
OSError.c:55
OSReport
void OSReport(char *,...)
Definition
OSError.c:12
OSError
u16 OSError
Definition
OSError.h:26
OSErrorHandler
void(* OSErrorHandler)(OSError error, OSContext *context,...)
Definition
OSError.h:27
OSPanic
ATTRIBUTE_NORETURN void OSPanic(char *file, int line, char *msg,...)
Definition
OSError.c:21
OSSetErrorHandler
OSErrorHandler OSSetErrorHandler(OSError error, OSErrorHandler handler)
Definition
OSError.c:47
error
u32 error
Definition
dvd.c:3
platform.h
u32
unsigned long u32
An unsigned 32-bit integer.
Definition
platform.h:26
u16
unsigned short u16
An unsigned 16-bit integer.
Definition
platform.h:23
u8
unsigned char u8
An unsigned 8-bit integer.
Definition
platform.h:20
ATTRIBUTE_NORETURN
#define ATTRIBUTE_NORETURN
Definition
platform.h:105
OSContext
Definition
OSContext.h:133
src
dolphin
os
OSError.h
Generated by
1.9.8