mirror of
https://github.com/wiiu-env/MemoryMappingModule.git
synced 2024-11-22 01:39:20 +01:00
Init Spinlock
This commit is contained in:
parent
e11cf31b05
commit
d890a6c91e
@ -10,8 +10,6 @@
|
|||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "CThread.h"
|
#include "CThread.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <coreinit/debug.h>
|
|
||||||
#include <cstdio>
|
|
||||||
|
|
||||||
OSSpinLock allocFreeSpinlock;
|
OSSpinLock allocFreeSpinlock;
|
||||||
|
|
||||||
@ -382,6 +380,8 @@ void MemoryMapping_setupMemoryMapping() {
|
|||||||
//readTestValuesFromMemory();
|
//readTestValuesFromMemory();
|
||||||
|
|
||||||
//runOnAllCores(writeSegmentRegister,&srTableCpy);
|
//runOnAllCores(writeSegmentRegister,&srTableCpy);
|
||||||
|
|
||||||
|
OSInitSpinLock(&allocFreeSpinlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *MemoryMapping_allocEx(uint32_t size, int32_t align, bool videoOnly) {
|
void *MemoryMapping_allocEx(uint32_t size, int32_t align, bool videoOnly) {
|
||||||
|
Loading…
Reference in New Issue
Block a user