mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
[FREELDR][MINIHAL] Move KefAcquireSpinLockAtDpcLevel stub back to HAL, #ifdef'ed in _MINIHAL_ where it's only needed.
This commit is contained in:
parent
242e0b4303
commit
c026b5950e
2 changed files with 14 additions and 15 deletions
|
@ -23,21 +23,6 @@ KeInitializeEvent(
|
|||
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
|
||||
NTAPI
|
||||
KeSetTimeIncrement(
|
||||
|
|
|
@ -28,6 +28,19 @@ KSPIN_LOCK HalpSystemHardwareLock;
|
|||
|
||||
#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
|
||||
*/
|
||||
|
@ -205,6 +218,7 @@ KeTryToAcquireQueuedSpinLock(IN KSPIN_LOCK_QUEUE_NUMBER LockNumber,
|
|||
return KeTryToAcquireSpinLockAtDpcLevel(Lock);
|
||||
}
|
||||
#endif /* !defined(_MINIHAL_) */
|
||||
|
||||
#endif /* defined(_M_IX86) */
|
||||
|
||||
VOID
|
||||
|
|
Loading…
Reference in a new issue