Add memory barrier to ensure memory coherence

This commit is contained in:
Maschell 2022-02-11 20:33:19 +01:00
parent 9e424205e0
commit cd56a105e3

View File

@ -416,6 +416,7 @@ void *MemoryMapping_allocEx(uint32_t size, int32_t align, bool videoOnly) {
break;
}
}
OSMemoryBarrier();
OSUnlockMutex(&allocMutex);
return res;
}
@ -447,6 +448,7 @@ void MemoryMapping_free(void *ptr) {
break;
}
}
OSMemoryBarrier();
OSUnlockMutex(&allocMutex);
}