diff --git a/source/memory_mapping.cpp b/source/memory_mapping.cpp index 52ac7e2..bfc788f 100644 --- a/source/memory_mapping.cpp +++ b/source/memory_mapping.cpp @@ -10,8 +10,6 @@ #include "logger.h" #include "CThread.h" #include -#include -#include OSSpinLock allocFreeSpinlock; @@ -382,6 +380,8 @@ void MemoryMapping_setupMemoryMapping() { //readTestValuesFromMemory(); //runOnAllCores(writeSegmentRegister,&srTableCpy); + + OSInitSpinLock(&allocFreeSpinlock); } void *MemoryMapping_allocEx(uint32_t size, int32_t align, bool videoOnly) {