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

@@ -26,6 +26,9 @@
// Support Rumble Pak
#define ENABLE_RUMBLE (1 || VERSION_SH)
// Clear RAM on boot
#define CLEARRAM 1
// Screen Size Defines
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240

BIN
lib/ique/libultra.a Normal file

Binary file not shown.

BIN
lib/ique/libultra_d.a Normal file

Binary file not shown.

BIN
lib/n64/libultra.a Normal file

Binary file not shown.

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();