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

This commit is contained in:
CrashOveride95 committed 2021-06-08 12:39:10 -04:00
1 parent 6f1b18bb5b
commit 81c18ab7fc
5 files changed
+7

No files matched your search

+3
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4
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();