mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Change spin lock release functions to do an interlocked exchange.
This commit is contained in:
parent
043c9e039b
commit
3080412dc0
1 changed files with 2 additions and 2 deletions
|
|
@ -664,7 +664,7 @@ void RtlRaiseException_x()
|
||||||
void KfReleaseSpinLock(uint32_t* spinLock)
|
void KfReleaseSpinLock(uint32_t* spinLock)
|
||||||
{
|
{
|
||||||
//printf("!!! STUB !!! KfReleaseSpinLock\n");
|
//printf("!!! STUB !!! KfReleaseSpinLock\n");
|
||||||
*spinLock = 0;
|
InterlockedExchange((volatile long*)spinLock, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void KfAcquireSpinLock(uint32_t* spinLock)
|
void KfAcquireSpinLock(uint32_t* spinLock)
|
||||||
|
|
@ -711,7 +711,7 @@ void VdGetSystemCommandBuffer()
|
||||||
void KeReleaseSpinLockFromRaisedIrql(uint32_t* spinLock)
|
void KeReleaseSpinLockFromRaisedIrql(uint32_t* spinLock)
|
||||||
{
|
{
|
||||||
//printf("!!! STUB !!! KeReleaseSpinLockFromRaisedIrql\n");
|
//printf("!!! STUB !!! KeReleaseSpinLockFromRaisedIrql\n");
|
||||||
*spinLock = 0;
|
InterlockedExchange((volatile long*)spinLock, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeAcquireSpinLockAtRaisedIrql(uint32_t* spinLock)
|
void KeAcquireSpinLockAtRaisedIrql(uint32_t* spinLock)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue