[FREELDR][MINIHAL] Move KefAcquireSpinLockAtDpcLevel stub back to HAL, #ifdef'ed in _MINIHAL_ where it's only needed.

This commit is contained in:
Hermès Bélusca-Maïto 2022-03-08 04:44:46 +01:00
parent 242e0b4303
commit c026b5950e
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 14 additions and 15 deletions

View file

@ -23,21 +23,6 @@ KeInitializeEvent(
RtlZeroMemory(Event, sizeof(*Event)); RtlZeroMemory(Event, sizeof(*Event));
} }
VOID
FASTCALL
KefAcquireSpinLockAtDpcLevel(
IN PKSPIN_LOCK SpinLock)
{
#if DBG
/* To be on par with HAL/NTOSKRNL */
#ifdef _M_AMD64
*SpinLock = (KSPIN_LOCK)KeGetCurrentThread() | 1;
#else
*SpinLock = (KSPIN_LOCK)(((PKIPCR)KeGetPcr())->PrcbData.CurrentThread) | 1;
#endif
#endif
}
VOID VOID
NTAPI NTAPI
KeSetTimeIncrement( KeSetTimeIncrement(

View file

@ -28,6 +28,19 @@ KSPIN_LOCK HalpSystemHardwareLock;
#ifdef _M_IX86 #ifdef _M_IX86
#ifdef _MINIHAL_
VOID
FASTCALL
KefAcquireSpinLockAtDpcLevel(
IN PKSPIN_LOCK SpinLock)
{
#if DBG
/* To be on par with HAL/NTOSKRNL */
*SpinLock = (KSPIN_LOCK)KeGetCurrentThread() | 1;
#endif
}
#endif /* defined(_MINIHAL_) */
/* /*
* @implemented * @implemented
*/ */
@ -205,6 +218,7 @@ KeTryToAcquireQueuedSpinLock(IN KSPIN_LOCK_QUEUE_NUMBER LockNumber,
return KeTryToAcquireSpinLockAtDpcLevel(Lock); return KeTryToAcquireSpinLockAtDpcLevel(Lock);
} }
#endif /* !defined(_MINIHAL_) */ #endif /* !defined(_MINIHAL_) */
#endif /* defined(_M_IX86) */ #endif /* defined(_M_IX86) */
VOID VOID