Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
os.h File Reference

Go to the source code of this file.

Classes

struct  OSCalendarTime
 
struct  OSBootInfo_s
 
struct  OSStopwatch
 

Typedefs

typedef s64 OSTime
 
typedef u32 OSTick
 
typedef struct OSCalendarTime OSCalendarTime
 
typedef struct OSBootInfo_s OSBootInfo
 
typedef struct OSStopwatch OSStopwatch
 

Functions

void OSReportInit (void)
 
void OSSwitchFiberEx (u32, u32, u32, u32, u32, u32)
 
void OSVAttention (const char *fmt, va_list args)
 
u32 __OSPhysicalMemSize AT_ADDRESS (OS_BASE_CACHED|0x0028)
 
u32 OSGetConsoleType (void)
 
void OSInit (void)
 
void OSRegisterVersion (const char *id)
 
void * OSGetArenaHi (void)
 
void * OSGetArenaLo (void)
 
void OSSetArenaHi (void *newHi)
 
void OSSetArenaLo (void *newLo)
 
void * OSAllocFromArenaLo (u32 size, u32 align)
 
void * OSAllocFromArenaHi (u32 size, u32 align)
 
u32 OSGetPhysicalMemSize (void)
 
void __OSPSInit (void)
 
void __OSFPRInit (void)
 
u32 __OSGetDIConfig (void)
 
void OSDefaultExceptionHandler (__OSException exception, OSContext *context)
 
void OSInitStopwatch (OSStopwatch *sw, char *name)
 
void OSStartStopwatch (OSStopwatch *sw)
 
void OSStopStopwatch (OSStopwatch *sw)
 
OSTime OSCheckStopwatch (OSStopwatch *sw)
 
void OSResetStopwatch (OSStopwatch *sw)
 
void OSDumpStopwatch (OSStopwatch *sw)
 
OSTick OSGetTick (void)
 
OSTime OSGetTime (void)
 
void OSTicksToCalendarTime (OSTime ticks, OSCalendarTime *td)
 
OSTime OSCalendarTimeToTicks (OSCalendarTime *td)
 
BOOL OSEnableInterrupts (void)
 
BOOL OSDisableInterrupts (void)
 
BOOL OSRestoreInterrupts (BOOL level)
 
u32 OSGetSoundMode (void)
 
void OSSetSoundMode (u32 mode)
 
 __declspec (weak) void OSReport(const char *msg
 
int const char void OSFatal (GXColor fg, GXColor bg, const char *msg)
 
void * OSPhysicalToCached (u32 paddr)
 
void * OSPhysicalToUncached (u32 paddr)
 
u32 OSCachedToPhysical (void *caddr)
 
u32 OSUncachedToPhysical (void *ucaddr)
 
void * OSCachedToUncached (void *caddr)
 
void * OSUncachedToCached (void *ucaddr)
 
OSTime __OSGetSystemTime (void)
 
s16 __OSf32tos16 (register f32 inF)
 
void OSf32tos16 (f32 *f, s16 *out)
 
u8 __OSf32tou8 (register f32 inF)
 
void OSf32tou8 (f32 *f, u8 *out)
 
static void OSInitFastCast (void)
 

Variables

va_list list
 
int line
 
int const char * msg
 
u8 __OSReport_disable
 
u8 __OSReport_Error_disable
 
u8 __OSReport_Warning_disable
 
u8 __OSReport_System_disable
 
u8 __OSReport_enable
 
OSExecParams __OSRebootParams
 
OSTime __OSStartTime
 
int __OSInIPL
 

Typedef Documentation

◆ OSBootInfo

typedef struct OSBootInfo_s OSBootInfo

◆ OSCalendarTime

typedef struct OSCalendarTime OSCalendarTime

◆ OSStopwatch

typedef struct OSStopwatch OSStopwatch

◆ OSTick

typedef u32 OSTick

◆ OSTime

typedef s64 OSTime

Function Documentation

◆ __declspec()

__declspec ( weak ) const

◆ __OSf32tos16()

s16 __OSf32tos16 ( register f32 inF)
inline

◆ __OSf32tou8()

u8 __OSf32tou8 ( register f32 inF)
inline

◆ __OSFPRInit()

void __OSFPRInit ( void )

◆ __OSGetDIConfig()

u32 __OSGetDIConfig ( void )

◆ __OSGetSystemTime()

OSTime __OSGetSystemTime ( void )
extern

◆ __OSPSInit()

void __OSPSInit ( void )

◆ AT_ADDRESS()

u32 __OSPhysicalMemSize AT_ADDRESS ( OS_BASE_CACHED| 0x0028)

◆ OSAllocFromArenaHi()

void * OSAllocFromArenaHi ( u32 size,
u32 align )

◆ OSAllocFromArenaLo()

void * OSAllocFromArenaLo ( u32 size,
u32 align )

◆ OSCachedToPhysical()

u32 OSCachedToPhysical ( void * caddr)

◆ OSCachedToUncached()

void * OSCachedToUncached ( void * caddr)

◆ OSCalendarTimeToTicks()

OSTime OSCalendarTimeToTicks ( OSCalendarTime * td)

◆ OSCheckStopwatch()

OSTime OSCheckStopwatch ( OSStopwatch * sw)

◆ OSDefaultExceptionHandler()

void OSDefaultExceptionHandler ( __OSException exception,
OSContext * context )

◆ OSDisableInterrupts()

BOOL OSDisableInterrupts ( void )

◆ OSDumpStopwatch()

void OSDumpStopwatch ( OSStopwatch * sw)

◆ OSEnableInterrupts()

BOOL OSEnableInterrupts ( void )

◆ OSf32tos16()

void OSf32tos16 ( f32 * f,
s16 * out )
inline

◆ OSf32tou8()

void OSf32tou8 ( f32 * f,
u8 * out )
inline

◆ OSFatal()

int const char void OSFatal ( GXColor fg,
GXColor bg,
const char * msg )

◆ OSGetArenaHi()

void * OSGetArenaHi ( void )

◆ OSGetArenaLo()

void * OSGetArenaLo ( void )

◆ OSGetConsoleType()

u32 OSGetConsoleType ( void )

◆ OSGetPhysicalMemSize()

u32 OSGetPhysicalMemSize ( void )

◆ OSGetSoundMode()

u32 OSGetSoundMode ( void )

◆ OSGetTick()

OSTick OSGetTick ( void )

◆ OSGetTime()

OSTime OSGetTime ( void )

◆ OSInit()

void OSInit ( void )

◆ OSInitFastCast()

static void OSInitFastCast ( void )
inlinestatic

◆ OSInitStopwatch()

void OSInitStopwatch ( OSStopwatch * sw,
char * name )

◆ OSPhysicalToCached()

void * OSPhysicalToCached ( u32 paddr)

◆ OSPhysicalToUncached()

void * OSPhysicalToUncached ( u32 paddr)

◆ OSRegisterVersion()

void OSRegisterVersion ( const char * id)

◆ OSReportInit()

void OSReportInit ( void )

◆ OSResetStopwatch()

void OSResetStopwatch ( OSStopwatch * sw)

◆ OSRestoreInterrupts()

BOOL OSRestoreInterrupts ( BOOL level)

◆ OSSetArenaHi()

void OSSetArenaHi ( void * newHi)

◆ OSSetArenaLo()

void OSSetArenaLo ( void * newLo)

◆ OSSetSoundMode()

void OSSetSoundMode ( u32 mode)

◆ OSStartStopwatch()

void OSStartStopwatch ( OSStopwatch * sw)

◆ OSStopStopwatch()

void OSStopStopwatch ( OSStopwatch * sw)

◆ OSSwitchFiberEx()

void OSSwitchFiberEx ( u32 param_0,
u32 param_1,
u32 param_2,
u32 param_3,
u32 param_4,
u32 param_5 )

◆ OSTicksToCalendarTime()

void OSTicksToCalendarTime ( OSTime ticks,
OSCalendarTime * td )

◆ OSUncachedToCached()

void * OSUncachedToCached ( void * ucaddr)

◆ OSUncachedToPhysical()

u32 OSUncachedToPhysical ( void * ucaddr)

◆ OSVAttention()

void OSVAttention ( const char * fmt,
va_list args )

Variable Documentation

◆ __OSInIPL

int __OSInIPL
extern

◆ __OSRebootParams

OSExecParams __OSRebootParams
extern

◆ __OSReport_disable

u8 __OSReport_disable
extern

m_Do_printf.cpp OSReport and printf Helper Functions

◆ __OSReport_enable

u8 __OSReport_enable
extern

◆ __OSReport_Error_disable

u8 __OSReport_Error_disable
extern

◆ __OSReport_System_disable

u8 __OSReport_System_disable
extern

◆ __OSReport_Warning_disable

u8 __OSReport_Warning_disable
extern

◆ __OSStartTime

OSTime __OSStartTime
extern

◆ line

int line

◆ list

va_list list

◆ msg

int const char* msg