mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-25 22:07:12 -04:00
4df8ccc871
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
#ifndef _DOLPHIN_OSERROR_H_
|
|
#define _DOLPHIN_OSERROR_H_
|
|
|
|
#include <dolphin/os/OSContext.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef u16 OSError;
|
|
typedef void (*OSErrorHandler)(OSError error, OSContext* context, ...);
|
|
|
|
#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_MAX (OS_ERROR_THERMAL_INTERRUPT + 1)
|
|
|
|
OSErrorHandler OSSetErrorHandler(OSError error, OSErrorHandler handler);
|
|
extern u32 __OSFpscrEnableBits;
|
|
extern OSErrorHandler __OSErrorTable[17];
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|