3#include <revolution/OS/OSContext.h>
4#include <revolution/OS/OSExec.h>
11 OS_CONSOLE_MASK = 0xF0000000,
12 OS_CONSOLE_MASK_RVL = 0x00000000,
13 OS_CONSOLE_MASK_EMU = 0x10000000,
14 OS_CONSOLE_MASK_TDEV = 0x20000000,
16 OS_CONSOLE_RVL_PP_1 = 0x00000011,
17 OS_CONSOLE_RVL_PP_2_1 = 0x00000012,
18 OS_CONSOLE_RVL_PP_2_2 = 0x00000020,
20 OS_CONSOLE_RVL_EMU = 0x10000008,
21 OS_CONSOLE_NDEV_1_0 = 0x10000010,
22 OS_CONSOLE_NDEV_1_1 = 0x10000011,
23 OS_CONSOLE_NDEV_1_2 = 0x10000012,
24 OS_CONSOLE_NDEV_2_0 = 0x10000020,
25 OS_CONSOLE_NDEV_2_1 = 0x10000021,
29 OS_APP_TYPE_IPL = 0x40,
30 OS_APP_TYPE_DVD = 0x80,
31 OS_APP_TYPE_CHANNEL = 0x81,
64typedef void (*OSExceptionHandler)(u8 type,
OSContext* ctx);
67extern BOOL __OSInNandBoot;
68extern BOOL __OSIsGcam;
69extern s64 __OSStartTime;
72void __OSFPRInit(
void);
73u32 __OSGetHollywoodRev(
void);
75u32 OSGetConsoleType(
void);
77OSExceptionHandler __OSSetExceptionHandler(u8 type, OSExceptionHandler handler);
78OSExceptionHandler __OSGetExceptionHandler(u8 type);
79void OSDefaultExceptionHandler(u8 type,
OSContext* ctx);
81u32 __OSGetDIConfig(
void);
82void OSRegisterVersion(
const char* ver);
83const char* OSGetAppGamename(
void);