39#define OS_CACHED_REGION_PREFIX 0x8000
40#define OS_UNCACHED_REGION_PREFIX 0xC000
41#define OS_PHYSICAL_MASK 0x3FFF
43#define OS_BASE_CACHED (OS_CACHED_REGION_PREFIX << 16)
44#define OS_BASE_UNCACHED (OS_UNCACHED_REGION_PREFIX << 16)
46#define OS_CONSOLE_MASK 0xf0000000
47#define OS_CONSOLE_RETAIL 0x00000000
48#define OS_CONSOLE_DEVELOPMENT 0x10000000
49#define OS_CONSOLE_TDEV 0x20000000
51#define OS_CONSOLE_RETAIL4 0x00000004
52#define OS_CONSOLE_RETAIL3 0x00000003
53#define OS_CONSOLE_RETAIL2 0x00000002
54#define OS_CONSOLE_RETAIL1 0x00000001
55#define OS_CONSOLE_TDEVHW4 0x20000007
56#define OS_CONSOLE_TDEVHW3 0x20000006
57#define OS_CONSOLE_TDEVHW2 0x20000005
58#define OS_CONSOLE_TDEVHW1 0x20000004
59#define OS_CONSOLE_DEVHW4 0x10000007
60#define OS_CONSOLE_DEVHW3 0x10000006
61#define OS_CONSOLE_DEVHW2 0x10000005
62#define OS_CONSOLE_DEVHW1 0x10000004
63#define OS_CONSOLE_MINNOW 0x10000003
64#define OS_CONSOLE_ARTHUR 0x10000002
65#define OS_CONSOLE_PC_EMULATOR 0x10000001
66#define OS_CONSOLE_EMULATOR 0x10000000
100#define OS_REPORT(...) OSReport(__VA_ARGS__)
101#define OS_PANIC(msg) OSPanic(__FILE__, __LINE__, msg)
102#define ASSERTMSG(exp, msg) (void)((exp) || (OSPanic(__FILE__, __LINE__, (msg)), 0))
104#define OS_REPORT(...)
105#define OS_WARNING(...)
106#define OS_REPORT_ERROR(...)
108#define ASSERTMSG(exp, msg) ((void)0)
302#define OS_ASSERT(...)
304#define OSPhysicalToCached(paddr) ((void*)((u32)(paddr) + OS_BASE_CACHED))
305#define OSPhysicalToUncached(paddr) ((void*)((u32)(paddr) + OS_BASE_UNCACHED))
306#define OSCachedToPhysical(caddr) ((u32)((u8*)(caddr)-OS_BASE_CACHED))
307#define OSUncachedToPhysical(ucaddr) ((u32)((u8*)(ucaddr)-OS_BASE_UNCACHED))
308#define OSCachedToUncached(caddr) ((void*)((u8*)(caddr) + (OS_BASE_UNCACHED - OS_BASE_CACHED)))
309#define OSUncachedToCached(ucaddr) ((void*)((u8*)(ucaddr) - (OS_BASE_UNCACHED - OS_BASE_CACHED)))
static OSContext context
Definition JUTException.cpp:233
u8 __OSException
Definition OSError.h:53
s64 OSTime
Definition OSTime.h:10
T cLib_calcTimer(T *value)
Definition c_lib.h:74
static char * tmp[5]
Definition d_a_npc_ashB.cpp:231
void OSReportForceEnableOff(void)
Definition m_Do_printf.cpp:63
BOOL OSIsThreadSuspended(OSThread *thread)
void OSf32tos16(f32 *f, s16 *out)
Definition os.h:155
void __OSDBJump(void)
Definition OS.c:510
void OSReport_System(const char *fmt,...)
Definition m_Do_printf.cpp:211
void OSReportDisable(void)
Definition m_Do_printf.cpp:48
void OSReportInit(void)
Definition m_Do_printf.cpp:89
void OSVReport(const char *format, va_list list)
Definition m_Do_printf.cpp:150
void OSReportInit__Fv(void)
void OSReport_FatalError(const char *fmt,...)
Definition m_Do_printf.cpp:163
void OSReportForceEnableOn(void)
Definition m_Do_printf.cpp:58
void __OSPSInit(void)
Definition OS.c:651
void OSPanic(const char *file, s32 line, const char *fmt,...)
Definition m_Do_printf.cpp:224
u8 __OSReport_System_disable
Definition m_Do_printf.cpp:18
void OSRegisterVersion(const char *version)
Definition OS.c:691
void(* OSExceptionHandler)(__OSException, OSContext *)
Definition os.h:129
volatile u16 __OSDeviceCode AT_ADDRESS(0x800030E6)
static void OSExceptionInit(void)
OSTime __OSStartTime
Definition OS.c:43
void __OSDBIntegrator(void)
Definition OS.c:491
void OSReport_Error(const char *fmt,...)
Definition m_Do_printf.cpp:179
u8 __OSf32tou8(register f32 inF)
Definition os.h:159
void OSReport(char *fmt,...)
static void OSExceptionVector(void)
OSExceptionHandler __OSGetExceptionHandler(__OSException exception)
Definition OS.c:528
void OSReportEnable(void)
Definition m_Do_printf.cpp:53
u8 __OSReport_Warning_disable
Definition m_Do_printf.cpp:16
OSExceptionHandler __OSSetExceptionHandler(__OSException exception, OSExceptionHandler handler)
Definition OS.c:521
u8 __OSReport_disable
Definition m_Do_printf.cpp:12
void __OSFPRInit(void)
Definition OS.c:68
static void OSDefaultExceptionHandler(__OSException exception, OSContext *context)
void OSVAttention(const char *fmt, va_list args)
Definition m_Do_printf.cpp:35
u32 OSGetConsoleType(void)
Definition OS.c:155
s16 __OSf32tos16(register f32 inF)
Definition os.h:141
void OSSwitchFiberEx(u32, u32, u32, u32, u32, u32)
Definition m_Do_printf.cpp:24
void OSAttention(const char *msg,...)
Definition m_Do_printf.cpp:40
BOOL __OSInIPL
Definition OS.c:46
BOOL __OSIsGcam
Definition OS.c:65
static void InquiryCallback(s32 param_0, DVDCommandBlock *param_1)
void OSReport_Warning(const char *fmt,...)
Definition m_Do_printf.cpp:195
u8 __OSReport_enable
Definition m_Do_printf.cpp:21
u8 * OSGetStackPointer(void)
Definition OSContext.c:344
u32 __OSGetDIConfig(void)
Definition OS.c:686
void OSf32tou8(f32 *f, u8 *out)
Definition os.h:173
static void OSInitFastCast(void)
Definition os.h:177
u8 __OSReport_Error_disable
Definition m_Do_printf.cpp:14
void OSInit(void)
Definition OS.c:231
s32 simMemSize
Definition os.h:210
u32 debugFlag
Definition os.h:212
u32 countryCode
Definition os.h:215
int trackSize
Definition os.h:214
u8 unk[8]
Definition os.h:216
u32 padSpec
Definition os.h:217
u32 argOffset
Definition os.h:211
int trackLocation
Definition os.h:213
s32 debugMonSize
Definition os.h:209
u32 field_0x3c
Definition os.h:229
u32 field_0x3040[34]
Definition os.h:245
u32 arena_low
Definition os.h:226
u8 padding_0x3185
Definition os.h:278
u32 field_0x318c
Definition os.h:282
u32 field_0x3110
Definition os.h:259
u8 padding_0x30e0[4]
Definition os.h:251
OSThread * field_0xe0
Definition os.h:235
u8 field_0x60[36]
Definition os.h:231
OSThread * field_0xdc
Definition os.h:234
u32 field_0x3180
Definition os.h:276
u32 field_0x3100
Definition os.h:256
u32 field_0x3198
Definition os.h:289
u32 field_0x30cc
Definition os.h:247
u32 field_0x3134
Definition os.h:265
u8 padding_0x3114[4]
Definition os.h:260
u32 field_0x2c
Definition os.h:225
u32 field_0x30e4
Definition os.h:252
u8 padding_0x3000[64]
Definition os.h:244
u8 padding_0x3148[16]
Definition os.h:270
OSExecParams * field_0x30f0
Definition os.h:254
u32 field_0x3190
Definition os.h:283
u32 field_0x30d0
Definition os.h:248
u8 padding_0x84[84]
Definition os.h:232
u8 padding_0x30ec[8]
Definition os.h:253
u8 padding_0xfc[5892]
Definition os.h:242
u8 field_0x3186
Definition os.h:279
u8 padding_0x40[32]
Definition os.h:230
u32 field_0xe8
Definition os.h:237
u8 field_0x1800[6144]
Definition os.h:243
u8 field_0x31a0[3424]
Definition os.h:299
u32 field_0xf4
Definition os.h:240
u8 padding_0x3108[8]
Definition os.h:258
u32 field_0x315c
Definition os.h:272
u32 field_0x38
Definition os.h:228
OSThread * field_0xe4
Definition os.h:236
u8 padding_0x30d8[4]
Definition os.h:249
u32 field_0x24
Definition os.h:223
u32 field_0x3138
Definition os.h:266
u32 field_0x3140
Definition os.h:268
u32 field_0x3118
Definition os.h:261
u32 field_0xec
Definition os.h:238
u8 padding_0x3120[16]
Definition os.h:263
u32 nintendo_boot_code
Definition os.h:222
u32 field_0xf0
Definition os.h:239
u32 field_0xf8
Definition os.h:241
u64 field_0x30d8
Definition os.h:250
u8 padding_0x3168[24]
Definition os.h:275
u32 field_0x3130
Definition os.h:264
u32 field_0x3194
Definition os.h:284
u32 field_0x3160
Definition os.h:273
u8 padding_0x3187
Definition os.h:280
u32 field_0x30c8
Definition os.h:246
DVDDiskID disk
Definition os.h:221
u32 field_0x3188
Definition os.h:281
OSContext * field_0xd8
Definition os.h:233
u8 field_0x3184
Definition os.h:277
u32 arena_high
Definition os.h:227
u8 padding_0x313c[4]
Definition os.h:267
u32 field_0x3158
Definition os.h:271
u8 padding_0x30f4[12]
Definition os.h:255
u32 field_0x3164
Definition os.h:274
u32 field_0x311c
Definition os.h:262
u32 field_0x3104
Definition os.h:257
u32 memory_size
Definition os.h:224
u32 field_0x319c
Definition os.h:292
u32 field_0x3144
Definition os.h:269
u32 version
Definition os.h:199
void * arena_lo
Definition os.h:202
u32 fst_max_length
Definition os.h:205
u32 boot_code
Definition os.h:198
u32 memory_size
Definition os.h:200
u32 console_type
Definition os.h:201
void * arena_hi
Definition os.h:203
void * fst_location
Definition os.h:204
DVDDiskID disk_info
Definition os.h:197
Definition OSContext.h:137
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
unsigned long long u64
Definition types.h:11
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8