Replaced "__sync_synchronize" with "__sync"

This commit is contained in:
Alex
2023-02-18 04:13:49 +02:00
parent 0fb62e52d2
commit 419b5bee0d
6 changed files with 14 additions and 14 deletions

View File

@ -342,7 +342,7 @@ SafeFunction void UserModeExceptionHandler(CHArchTrapFrame *Frame)
}
TaskManager->GetCurrentThread()->Status = Tasking::TaskStatus::Terminated;
__sync_synchronize();
__sync;
error("End of report.");
CPU::Interrupts(CPU::Enable);
debug("Interrupts enabled back.");

View File

@ -58,14 +58,14 @@ Retry:
CPUData *CoreData = GetCurrentCPU();
if (CoreData != nullptr)
LockData.Core = CoreData->ID;
__sync_synchronize();
__sync;
return 0;
}
int LockClass::Unlock()
{
__sync_synchronize();
__sync;
IsLocked.Store(false, MemoryOrder::Release);
LockData.Count--;
IsLocked = false;
@ -117,7 +117,7 @@ Retry:
CPUData *CoreData = GetCurrentCPU();
if (CoreData != nullptr)
LockData.Core = CoreData->ID;
__sync_synchronize();
__sync;
return 0;
}

View File

@ -14,7 +14,7 @@
#ifdef DEBUG_ALLOCATIONS
#define memdbg(m, ...) \
debug(m, ##__VA_ARGS__); \
__sync_synchronize()
__sync
#else
#define memdbg(m, ...)
#endif