more asset preparation

This commit is contained in:
Prakxo
2023-03-14 08:36:15 +00:00
parent b3050638b2
commit bcebb21d48
14 changed files with 174 additions and 11 deletions
+11
View File
@@ -0,0 +1,11 @@
#ifndef MSL_PRINTF_H
#define MSL_PRINTF_H
#include "types.h"
#include "va_args.h"
void vprintf(const char*, va_list);
void print(const char*, ...);
#endif
+2 -6
View File
@@ -24,15 +24,11 @@ extern void __OSCacheInit();
#define OSErrorLine(line, ...) \
OSPanic(__FILE__, line, __VA_ARGS__)
asm BOOL OSDisableInterrupts(void);
asm BOOL OSEnableInterrupts(void);
asm BOOL OSRestoreInterrupts(BOOL level);
void __RAS_OSDisableInterrupts_begin(void);
void __RAS_OSDisableInterrupts_end(void);
void OSResetSystem(u32, u32, u32); // goes in reset, but eh
void OSInit(void);
typedef void (*OSExceptionHandler)(u8, OSContext*);
OSExceptionHandler __OSSetExceptionHandler(u8, OSExceptionHandler);
+13
View File
@@ -0,0 +1,13 @@
#ifndef OS_INTERRUPT_H
#define OS_INTERRUPT_H
#include "types.h"
BOOL OSDisableInterrupts(void);
BOOL OSEnableInterrupts(void);
BOOL OSRestoreInterrupts(BOOL status);
void __RAS_OSDisableInterrupts_begin(void);
void __RAS_OSDisableInterrupts_end(void);
#endif
+9
View File
@@ -0,0 +1,9 @@
#ifndef OS_RTC_H
#define OS_RTC_H
#include "types.h"
u32 __OSSyncSram(void);
void __OSSetBootMode(u8);
#endif
+1 -1
View File
@@ -3,7 +3,7 @@
#include "types.h"
#include "dolphin/os/OSMemory.h"
#include "dolphin/os.h"
#include "dolphin/os/OSInterrupt.h"
asm void Config24MB();
asm void Config48MB();
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef FAULT_H
#define FAULT_H
#include "types.h"
#include "dolphin/OS/os.h"
#include "dolphin/os/OSInterrupt.h"
#include "libultra/libultra.h"
+19
View File
@@ -0,0 +1,19 @@
#ifndef LIB_OS_REPORT_H
#define LIB_OS_REPORT_H
#include "types.h"
#include "va_args.h"
void OSReportDisable(void);
void OSReportEnable(void);
void OSVReport(const char*, va_list);
void OSReport(const char*,...);
void OSPanic(const char*, u32, const char*,...);
void OSChangeBootMode(u32);
void OSDVDFatalError(void);
#endif