ExAcquireSpinLockExclusiveAtDpcLevel
INT8 __fastcall ExAcquireSpinLockExclusiveAtDpcLevel(INT64 *a1){
signed __int32 i;
int v3;
bool v4;
signed __int32 v5;
UINT64 SpinCount;
LODWORD(SpinCount) = 0;
if( _interlockedbittestandset((volatile signed __int32 *)a1, 0x1Fu) )
{
v3 = ExpWaitForSpinLockExclusiveAndAcquire(a1, 0xFFu);
LODWORD(SpinCount) = v3;
}
for( i = *(_DWORD *)a1; (i & 0xBFFFFFFF) != 0x80000000; LOBYTE(v3) = i )
{
if( (i & 0x40000000) == 0 )
{
v5 = _InterlockedCompareExchange((volatile signed __int32 *)a1, i | 0x40000000, i);
v4 = i == v5;
i = v5;
if( !v4 )
continue;
}
KeYieldProcessorEx(&SpinCount);
i = *(_DWORD *)a1;
}
return v3;
}Referenced by:
DbgpInsertDebugPrintCallback
DbgpRemoveDebugPrintCallback
KeAdjustTimerDelayProcess
KeForceResumeProcess
KeFreezeProcess
KeRecomputeCpuSetAffinityProcess
KeSetAffinityProcess
KeSetAffinityThread
KeSetCpuSetsProcess
KeSetDisableQuantumProcess
KeSetExecuteOptions
KeSetPriorityAndQuantumProcess
KeSetProcessSchedulingGroup
KeSetQuantumProcess
KeStartThread
KeTerminateThread
KeThawProcess
KeTransitionProcessorParkState
KiAbEntryGetLockedHeadEntry
KiAbEntryRemoveFromTree
KiAcquireReleaseObjectRundownLockExclusive
MiBeginPageAccessor
MiClearFilePointer
MiCopyDataPageToImagePage
MiCopyFileOnlyGlobalSubsectionPage
MiCopyImageExtentContents
MiDrainCrossPartitionUsage
MiFaultGetFileExtents
MiFlushSectionInternal
MiGatherMappedPages
MiInsertPageInList
MiInsertUnusedSegment
MiInsertUnusedSubsection
MiLockAllMemoryLists
MiLockPageTableInternal
MiNoPagesLastChance
MiOutPageSingleKernelStack
MiPreventControlAreaDeletion
MiPurgeSubsection
MiReferenceIoPages
MiReferencePageRuns
MiReleasePageFileInfo
MiRemoveFaultNode
MiRemoveUnusedSegment
MiRemoveUnusedSubsection
MiSectionCreated
MiWaitForPageWriteCompletion
MiWalkPageTables
MiWalkPageTablesRecursively
MiZeroSectionObjectPointer
MmLockLoadedModuleListExclusive
MmUnmapViewInSystemCache
PopPepLockActivityLink
PopPepWork
PspIumReplenishPartitionPages
ViAvlAcquireTableLockAtDpcLevelSafe
ViDeadlockDetectionLock
VmpFaultEntryInsert
VmpFaultEntryRemove
VmpProcessContextLockExclusive
VslIumEfiRuntimeService