mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +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));
|
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(
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue