marioparty4/include/dolphin/os/OSPriv.h
dbalatoni13 6575f573f6
Match OSReboot.c and some of TRK + port mstory3Dll (#541)
* Match OSReboot.c and match some of TRK

* Port mstory3Dll
2025-01-19 14:54:38 -06:00

53 lines
1.1 KiB
C

#ifndef _DOLPHIN_OSPRIV
#define _DOLPHIN_OSPRIV
#include "dolphin/os.h"
#ifdef __cplusplus
extern "C" {
#endif
#define OFFSET(addr, align) (((u32)(addr) & ((align)-1)))
// OSAudioSystem.c
void __OSInitAudioSystem(void);
void __OSStopAudioSystem(void);
// OSCache.c
void __OSCacheInit(void);
// OSContext.c
void __OSContextInit(void);
// OSMutex.c
void __OSUnlockAllMutex(struct OSThread *thread);
// OSInterrupt.c
extern void __RAS_OSDisableInterrupts_begin(void);
extern void __RAS_OSDisableInterrupts_end(void);
void __OSInterruptInit(void);
void __OSModuleInit(void);
void __OSInitSystemCall(void);
// OSThread.c
void __OSThreadInit(void);
void __OSReschedule(void);
typedef void (*OSExceptionHandler)(__OSException, OSContext*);
OSExceptionHandler __OSSetExceptionHandler(__OSException exception, OSExceptionHandler handler);
__OSExceptionHandler __OSGetExceptionHandler(__OSException exception);
OSTime __OSGetSystemTime();
OSTime __OSTimeToSystemTime(OSTime);
// OSReset.c
void __OSDoHotReset(s32);
// OSReboot
void __OSReboot(u32 resetCode, u32 bootDol);
#ifdef __cplusplus
}
#endif
#endif // _DOLPHIN_OSPRIV