Implement aligned funcs

This commit is contained in:
Prakxo
2023-02-15 09:41:25 +00:00
parent 79bb2ae6e3
commit 169f213772
15 changed files with 112 additions and 18 deletions
+29
View File
@@ -0,0 +1,29 @@
#include "types.h"
void EXI2_Init(void){
}
void EXI2_EnableInterrupts(void){
}
u8 EXI2_Poll(void){
return 0;
}
u8 EXI2_ReadN(void){
return 0;
}
u8 EXI2_WriteN(void){
return 0;
}
void EXI2_Reserve(void){
}
void EXI2_Unreserve(void){
}
u8 AMC_IsStub(void){
return 1;
}
+5
View File
@@ -0,0 +1,5 @@
#include "types.h"
void __GXSetRange(void){
}
+5
View File
@@ -0,0 +1,5 @@
#include "types.h"
BOOL Hu_IsStub(void){
return 0;
}
+16 -5
View File
@@ -1,4 +1,9 @@
#include "libultra/libultra.h"
#include "_mem.h"
#include "dolphin/OS/os.h"
#include "dolphin/OS/OSTime.h"
extern OSTime __osTimeOffset;
void bcopy(void* __src, void* __dst, size_t __n) {
memmove(__dst, __src, __n);
@@ -12,12 +17,18 @@ 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, ...){
va_list arg;
va_start(arg, format);
OSVReport(format, arg);
va_end(arg);
//void osWritebackDCache(void* buf, u32 len){
// DCStoreRange(buf, len);
//}
}
void osWritebackDCache(void* buf, u32 len){
DCStoreRange(buf, len);
}
/* s32 osGetCount(void){
u32 osGetCount(void){
return OSGetTick();
}
*/