We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3916e5 commit f1c1aa8Copy full SHA for f1c1aa8
ee/libcglue/samples/mem_test/main.c
@@ -16,6 +16,7 @@
16
#include <assert.h>
17
18
#include <kernel.h>
19
+#include <syscallnr.h>
20
#include <rom0_info.h>
21
22
#if defined(SCREEN_DEBUG)
@@ -52,7 +53,7 @@ void _libcglue_rtc_update() {}
52
53
// "weak" function called by crt0.o
54
void _ps2sdk_memory_init()
55
{
- if (GetMemorySize() == (32 * 1024 * 1024) && IsDESRMachine() == 1) {
56
+ if (GetMemorySize() == (32 * 1024 * 1024) && GetSyscallHandler(__NR_GetMemoryMode) && GetMemoryMode() == 1) {
57
// Switch to 64MiB mode
58
SetMemoryMode(0);
59
_InitTLB();
0 commit comments