SSBM Decomp
Loading...
Searching...
No Matches
__os.h
Go to the documentation of this file.
1#ifndef _DOLPHIN_OS_INTERNAL_H_
2#define _DOLPHIN_OS_INTERNAL_H_
3
4#include <dolphin/os.h>
5
6// OS.c
7extern char* __OSExceptionNames[15]; // D ONLY
8
9unsigned long __OSIsDebuggerPresent(void);
10void __OSPSInit(void);
11
12// OSAlloc.c
13extern volatile int __OSCurrHeap;
14
15// OSAudioSystem.c
16void __OSInitAudioSystem(void);
17void __OSStopAudioSystem(void);
18
19// OSCache.c
20void __OSCacheInit(void);
21
22// OSContext.c
23void __OSContextInit(void);
24
25// OSError.c
26void __OSUnhandledException(unsigned char exception, struct OSContext* context,
27 unsigned long dsisr, unsigned long dar);
28
29// OSInterrupt.c
32
33extern unsigned long long __OSSpuriousInterrupts; // D ONLY
34extern char* __OSInterruptNames[33]; // D ONLY
35extern char* __OSPIErrors[8]; // D ONLY
36
38 __OSInterruptHandler handler);
40void __OSInterruptInit(void);
43void __OSDispatchInterrupt(__OSException exception, OSContext* context);
44void __OSModuleInit(void);
45
46// OSMemory.c
48
49// OSMutex.c
50void __OSUnlockAllMutex(struct OSThread* thread);
51int __OSCheckDeadLock(struct OSThread* thread);
52int __OSCheckMutexes(struct OSThread* thread);
53
54// OSReset.c
55void __OSDoHotReset(int);
56
57// OSResetSW.c
58void __OSResetSWInterruptHandler(short exception, struct OSContext* context);
59
60// OSRtc.c
61int __OSGetRTC(unsigned long* rtc);
62int __OSSetRTC(unsigned long rtc);
63void __OSInitSram();
64struct OSSram* __OSLockSram(void);
65struct OSSramEx* __OSLockSramEx(void);
66int __OSUnlockSram(int commit);
67int __OSUnlockSramEx(int commit);
68int __OSSyncSram(void);
69int __OSCheckSram(void);
70int __OSReadROM(void* buffer, long length, long offset);
71int __OSReadROMAsync(void* buffer, long length, long offset,
72 void (*callback)());
73unsigned char __OSGetBootMode(void);
74void __OSSetBootMode(unsigned char ntd);
75
76void OSSetWirelessID(long chan, u16 id);
77
78// OSSync.c
81
82void __OSInitSystemCall(void);
83
84// OSThread.c
85void __OSThreadInit(void);
86long __OSGetEffectivePriority(struct OSThread* thread);
87void __OSPromoteThread(struct OSThread* thread, long priority);
88void __OSReschedule(void);
89
90// OSTime.c
91void __OSSetTime(long long time);
92long long __OSGetSystemTime();
93long long __OSTimeToSystemTime(s64 time);
94void __OSSetTick(register unsigned long newTicks);
95
96// ppc_eabi_init.c
97__declspec(section ".init") asm void __init_hardware(void);
98__declspec(section ".init") asm void __flush_cache(void* address, size_t size);
99void __init_user(void);
100void __init_cpp(void);
101void __fini_cpp(void);
102void _ExitProcess(void);
103
104// start.c
105void __start(void);
106
107__declspec(section ".init") extern void __start(void);
108__declspec(section ".init") void __copy_rom_section(void* dst, const void* src,
109 unsigned long size);
110__declspec(section ".init") void __init_bss_section(void* dst,
111 unsigned long size);
112__declspec(section ".init") extern void __init_registers(void);
113__declspec(section ".init") extern void __init_data(void);
114
115// time.dolphin.c
116long long __get_clock(void);
117unsigned long __get_time(void);
118int __to_gm_time(void);
119
120#endif // _DOLPHIN_OS_INTERNAL_H_
volatile OSHeapHandle __OSCurrHeap
Definition OSAlloc.c:38
u8 __OSException
Definition OSException.h:29
void __init_user(void)
Definition __ppc_eabi_init.c:44
void __start(void)
void __OSModuleInit(void)
Definition OSLink.c:390
void __OSPromoteThread(struct OSThread *thread, long priority)
Definition OSThread.c:340
int __OSUnlockSramEx(int commit)
Definition OSRtc.c:223
struct OSSramEx * __OSLockSramEx(void)
Definition OSRtc.c:175
void __OSSetTick(register unsigned long newTicks)
Definition OSTime.c:97
long __OSGetEffectivePriority(struct OSThread *thread)
Definition OSThread.c:277
unsigned long __get_time(void)
Definition time.dolphin.c:11
size_t size
Definition __os.h:98
void __OSPSInit(void)
Definition OS.c:499
void __OSUnhandledException(unsigned char exception, struct OSContext *context, unsigned long dsisr, unsigned long dar)
Definition OSError.c:53
long long __OSTimeToSystemTime(s64 time)
Definition OSTime.c:83
void __fini_cpp(void)
Definition __ppc_eabi_init.c:59
void __OSInitMemoryProtection(void)
Definition OSMemory.c:146
unsigned char __OSGetBootMode(void)
Definition OSRtc.c:438
char * __OSPIErrors[8]
void __OSDoHotReset(int)
Definition OSReset.c:154
void __OSReschedule(void)
Definition OSThread.c:424
void __OSSystemCallVectorStart()
void __OSSetTime(long long time)
Definition OSTime.c:55
__OSInterruptHandler __OSSetInterruptHandler(__OSInterrupt interrupt, __OSInterruptHandler handler)
Definition OSInterrupt.c:104
void __init_cpp(void)
Definition __ppc_eabi_init.c:48
unsigned long __OSIsDebuggerPresent(void)
Definition OS.c:65
void __OSStopAudioSystem(void)
Definition OSAudioSystem.c:94
int __to_gm_time(void)
Definition time.dolphin.c:16
OSInterruptMask __OSMaskInterrupts(OSInterruptMask global)
Definition OSInterrupt.c:332
int __OSSetRTC(unsigned long rtc)
Definition OSRtc.c:66
void __OSInitSram()
Definition OSRtc.c:147
int __OSCheckSram(void)
Definition OSRtc.c:233
int __OSCheckMutexes(struct OSThread *thread)
Definition OSMutex.c:275
void OSSetWirelessID(long chan, u16 id)
Definition OSRtc.c:462
int __OSGetRTC(unsigned long *rtc)
Definition OSRtc.c:44
void __OSCacheInit(void)
Definition OSCache.c:666
void __OSContextInit(void)
Definition OSContext.c:577
int __OSReadROMAsync(void *buffer, long length, long offset, void(*callback)())
Definition OSRtc.c:293
void __RAS_OSDisableInterrupts_end(void)
void __RAS_OSDisableInterrupts_begin(void)
int __OSUnlockSram(int commit)
Definition OSRtc.c:218
void __OSInterruptInit(void)
Definition OSInterrupt.c:130
long long __get_clock(void)
Definition time.dolphin.c:6
OSInterruptMask __OSUnmaskInterrupts(OSInterruptMask global)
Definition OSInterrupt.c:352
int __OSSyncSram(void)
Definition OSRtc.c:228
void _ExitProcess(void)
Definition __ppc_eabi_init.c:81
void __OSInitSystemCall(void)
Definition OSSync.c:26
void __OSInitAudioSystem(void)
Definition OSAudioSystem.c:21
const void * src
Definition __os.h:108
char * __OSExceptionNames[15]
__declspec(section ".init") asm void __init_hardware(void)
Definition __start.c:30
long long __OSGetSystemTime()
Definition OSTime.c:69
void __OSSetBootMode(unsigned char ntd)
Definition OSRtc.c:446
void __OSThreadInit(void)
Definition OSThread.c:119
struct OSSram * __OSLockSram(void)
Definition OSRtc.c:170
void __OSResetSWInterruptHandler(short exception, struct OSContext *context)
void __OSUnlockAllMutex(struct OSThread *thread)
Definition OSMutex.c:121
int __OSCheckDeadLock(struct OSThread *thread)
Definition OSMutex.c:262
int __OSReadROM(void *buffer, long length, long offset)
Definition OSRtc.c:255
void __OSDispatchInterrupt(__OSException exception, OSContext *context)
Definition OSInterrupt.c:372
void __OSSystemCallVectorEnd()
__OSInterruptHandler __OSGetInterruptHandler(__OSInterrupt interrupt)
Definition OSInterrupt.c:120
char * __OSInterruptNames[33]
unsigned long long __OSSpuriousInterrupts
SECTION_INIT void __init_hardware(void)
SECTION_INIT void __flush_cache(void *address, size_t size)
static void __init_bss_section(void *dst, unsigned long size)
Definition __start.c:158
static void __copy_rom_section(void *dst, const void *src, unsigned long size)
Definition __start.c:150
char buffer[1500]
Definition dbbonus.c:29
static void callback(HSD_GObj *gobj)
Definition ftdonkeyspeciallw.c:89
signed long long int s64
Definition types.h:15
unsigned short int u16
Definition types.h:7
void(* __OSInterruptHandler)(__OSInterrupt interrupt, OSContext *context)
Definition os.h:18
s16 __OSInterrupt
Definition os.h:13
u32 OSInterruptMask
Definition os.h:14
Definition OSContext.h:137
Definition OSRtc.h:37
Definition OSRtc.h:25
Definition OSThread.h:34