diff --git a/lib/src/unknown_0CE200.c b/lib/src/unknown_0CE200.c index 2792e57b..da2a628a 100644 --- a/lib/src/unknown_0CE200.c +++ b/lib/src/unknown_0CE200.c @@ -4,6 +4,7 @@ #include "types.h" #include "macros.h" #include "libultra_internal.h" +#include "memory.h" s32 D_800E38D0 = 0; @@ -31,7 +32,7 @@ s32 __osBaseCounter; s32 D_8012D22C; s32 D_8012D230[4]; s32 D_8012D240[108]; -s32 D_8012D3F0; +MemoryPoolSlot *gMainMemoryPool; GLOBAL_ASM("lib/asm/non_matchings/unknown_0CE200/__osSiCreateAccessQueue.s") GLOBAL_ASM("lib/asm/non_matchings/unknown_0CE200/__osSiGetAccess.s") diff --git a/src/memory.c b/src/memory.c index 2fd5252f..4b2a51e9 100644 --- a/src/memory.c +++ b/src/memory.c @@ -40,7 +40,7 @@ s32 D_80123ED0[64]; s32 D_80123FD0[8]; s32 D_80123FF0[8]; -extern MemoryPoolSlot D_8012D3F0; +extern MemoryPoolSlot *gMainMemoryPool; /******************************/ @@ -52,7 +52,7 @@ void init_main_memory_pool(void) { gNumberOfMemoryPools = -1; if(1) { // Create the main memory pool. - new_memory_pool(&D_8012D3F0, RAM_END - (s32)(&D_8012D3F0), MAIN_POOL_SLOT_COUNT); + new_memory_pool(&gMainMemoryPool, RAM_END - (s32)(&gMainMemoryPool), MAIN_POOL_SLOT_COUNT); } set_free_queue_state(2); gFreeQueueCount = 0;