From d890a6c91e7855e72a721a16de13b929e441f285 Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 7 Dec 2021 20:43:48 +0100 Subject: [PATCH] Init Spinlock --- source/memory_mapping.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {