mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-31 00:10:26 -06:00
Change spin lock release functions to do an interlocked exchange.
This commit is contained in:
@@ -664,7 +664,7 @@ void RtlRaiseException_x()
|
||||
void KfReleaseSpinLock(uint32_t* spinLock)
|
||||
{
|
||||
//printf("!!! STUB !!! KfReleaseSpinLock\n");
|
||||
*spinLock = 0;
|
||||
InterlockedExchange((volatile long*)spinLock, 0);
|
||||
}
|
||||
|
||||
void KfAcquireSpinLock(uint32_t* spinLock)
|
||||
@@ -711,7 +711,7 @@ void VdGetSystemCommandBuffer()
|
||||
void KeReleaseSpinLockFromRaisedIrql(uint32_t* spinLock)
|
||||
{
|
||||
//printf("!!! STUB !!! KeReleaseSpinLockFromRaisedIrql\n");
|
||||
*spinLock = 0;
|
||||
InterlockedExchange((volatile long*)spinLock, 0);
|
||||
}
|
||||
|
||||
void KeAcquireSpinLockAtRaisedIrql(uint32_t* spinLock)
|
||||
|
||||
Reference in New Issue
Block a user