Implement THA and THA_GA

This commit is contained in:
Cuyler36
2023-03-18 19:56:06 -04:00
parent b14619a70f
commit 904956b7fd
8 changed files with 219 additions and 8 deletions
+5 -4
View File
@@ -4,12 +4,12 @@
#include "dolphin/os/OSTime.h"
extern OSTime __osTimeOffset;
s32 osAppNMIBuffer[16];
void bcopy(void* __src, void* __dst, size_t __n) {
memmove(__dst, __src, __n);
}
int bcmp(void* __s1, void* __s2, size_t __n) {
return memcmp(__s1, __s2, __n);
}
@@ -17,18 +17,19 @@ int bcmp(void* __s1, void* __s2, size_t __n) {
void bzero(void* __s, size_t __n) {
memset(__s, 0, __n);
}
void osSyncPrintf(const char* format, ...){
void osSyncPrintf(const char* format, ...) {
va_list arg;
va_start(arg, format);
OSVReport(format, arg);
va_end(arg);
}
void osWritebackDCache(void* buf, u32 len){
void osWritebackDCache(void* buf, u32 len) {
DCStoreRange(buf, len);
}
u32 osGetCount(void){
u32 osGetCount(void) {
return OSGetTick();
}