Add missing libultra libraries, and make ClearRAM(); optional

This commit is contained in:
CrashOveride95
2021-06-08 12:39:10 -04:00
parent 6f1b18bb5b
commit 81c18ab7fc
5 changed files with 7 additions and 0 deletions

View File

@@ -476,10 +476,12 @@ void thread1_idle(UNUSED void *arg) {
}
}
#if CLEARRAM
void ClearRAM(void)
{
bzero(_mainSegmentEnd, (size_t)osMemSize - (size_t)OS_K0_TO_PHYSICAL(_mainSegmentEnd));
}
#endif
#ifdef ISVPRINT
extern u32 gISVDbgPrnAdrs;
@@ -498,7 +500,9 @@ void osInitialize_fakeisv() {
#endif
void main_func(void) {
#if CLEARRAM
ClearRAM();
#endif
__osInitialize_common();
#ifdef ISVPRINT
osInitialize_fakeisv();