SSBM Decomp
Loading...
Searching...
No Matches
OSError.h File Reference
#include <platform.h>
#include <dolphin/os/OSContext.h>

Go to the source code of this file.

Macros

#define OS_ERROR_SYSTEM_RESET   0
 
#define OS_ERROR_MACHINE_CHECK   1
 
#define OS_ERROR_DSI   2
 
#define OS_ERROR_ISI   3
 
#define OS_ERROR_EXTERNAL_INTERRUPT   4
 
#define OS_ERROR_ALIGNMENT   5
 
#define OS_ERROR_PROGRAM   6
 
#define OS_ERROR_FLOATING_POINT   7
 
#define OS_ERROR_DECREMENTER   8
 
#define OS_ERROR_SYSTEM_CALL   9
 
#define OS_ERROR_TRACE   10
 
#define OS_ERROR_PERFORMACE_MONITOR   11
 
#define OS_ERROR_BREAKPOINT   12
 
#define OS_ERROR_SYSTEM_INTERRUPT   13
 
#define OS_ERROR_THERMAL_INTERRUPT   14
 
#define OS_ERROR_PROTECTION   15
 
#define OS_ERROR_MAX   (OS_ERROR_THERMAL_INTERRUPT + 1)
 

Typedefs

typedef u16 OSError
 
typedef void(* OSErrorHandler) (OSError error, OSContext *context,...)
 

Functions

OSErrorHandler OSSetErrorHandler (OSError error, OSErrorHandler handler)
 
void __OSUnhandledException (u8 error, OSContext *context, u32 dsisr, u32 dar)
 
ATTRIBUTE_NORETURN void OSPanic (char *file, int line, char *msg,...)
 
void OSReport (char *,...)
 

Macro Definition Documentation

◆ OS_ERROR_SYSTEM_RESET

#define OS_ERROR_SYSTEM_RESET   0

◆ OS_ERROR_MACHINE_CHECK

#define OS_ERROR_MACHINE_CHECK   1

◆ OS_ERROR_DSI

#define OS_ERROR_DSI   2

◆ OS_ERROR_ISI

#define OS_ERROR_ISI   3

◆ OS_ERROR_EXTERNAL_INTERRUPT

#define OS_ERROR_EXTERNAL_INTERRUPT   4

◆ OS_ERROR_ALIGNMENT

#define OS_ERROR_ALIGNMENT   5

◆ OS_ERROR_PROGRAM

#define OS_ERROR_PROGRAM   6

◆ OS_ERROR_FLOATING_POINT

#define OS_ERROR_FLOATING_POINT   7

◆ OS_ERROR_DECREMENTER

#define OS_ERROR_DECREMENTER   8

◆ OS_ERROR_SYSTEM_CALL

#define OS_ERROR_SYSTEM_CALL   9

◆ OS_ERROR_TRACE

#define OS_ERROR_TRACE   10

◆ OS_ERROR_PERFORMACE_MONITOR

#define OS_ERROR_PERFORMACE_MONITOR   11

◆ OS_ERROR_BREAKPOINT

#define OS_ERROR_BREAKPOINT   12

◆ OS_ERROR_SYSTEM_INTERRUPT

#define OS_ERROR_SYSTEM_INTERRUPT   13

◆ OS_ERROR_THERMAL_INTERRUPT

#define OS_ERROR_THERMAL_INTERRUPT   14

◆ OS_ERROR_PROTECTION

#define OS_ERROR_PROTECTION   15

◆ OS_ERROR_MAX

#define OS_ERROR_MAX   (OS_ERROR_THERMAL_INTERRUPT + 1)

Typedef Documentation

◆ OSError

typedef u16 OSError

◆ OSErrorHandler

typedef void(* OSErrorHandler) (OSError error, OSContext *context,...)

Function Documentation

◆ OSSetErrorHandler()

OSErrorHandler OSSetErrorHandler ( OSError  error,
OSErrorHandler  handler 
)

◆ __OSUnhandledException()

void __OSUnhandledException ( u8  error,
OSContext context,
u32  dsisr,
u32  dar 
)

◆ OSPanic()

ATTRIBUTE_NORETURN void OSPanic ( char *  file,
int  line,
char *  msg,
  ... 
)

◆ OSReport()

void OSReport ( char *  msg,
  ... 
)