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
+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