[NTOSKRNL] Implement ExfAcquireRundownProtectionCacheAwareEx(), ExfReleaseRundownProtectionCacheAwareEx()

This commit is contained in:
Pierre Schweitzer 2018-11-17 15:36:08 +01:00
parent afb2214154
commit 36fadc2dca
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -5,6 +5,7 @@
* PURPOSE: Rundown and Cache-Aware Rundown Protection * PURPOSE: Rundown and Cache-Aware Rundown Protection
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net) * PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
* Thomas Weidenmueller * Thomas Weidenmueller
* Pierre Schweitzer
*/ */
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
@ -391,17 +392,17 @@ ExfAcquireRundownProtectionCacheAware(IN PEX_RUNDOWN_REF_CACHE_AWARE RunRefCache
} }
/* /*
* @unimplemented NT5.2 * @implemented NT5.2
*/ */
BOOLEAN BOOLEAN
FASTCALL FASTCALL
ExfAcquireRundownProtectionCacheAwareEx(IN PEX_RUNDOWN_REF_CACHE_AWARE RunRefCacheAware, ExfAcquireRundownProtectionCacheAwareEx(IN PEX_RUNDOWN_REF_CACHE_AWARE RunRefCacheAware,
IN ULONG Count) IN ULONG Count)
{ {
DBG_UNREFERENCED_PARAMETER(RunRefCacheAware); PEX_RUNDOWN_REF RunRef;
DBG_UNREFERENCED_PARAMETER(Count);
UNIMPLEMENTED; RunRef = ExGetRunRefForCurrentProcessor(RunRefCacheAware);
return FALSE; return ExfAcquireRundownProtectionEx(RunRef, Count);
} }
/* /*
@ -418,16 +419,17 @@ ExfReleaseRundownProtectionCacheAware(IN PEX_RUNDOWN_REF_CACHE_AWARE RunRefCache
} }
/* /*
* @unimplemented NT5.2 * @implemented NT5.2
*/ */
VOID VOID
FASTCALL FASTCALL
ExfReleaseRundownProtectionCacheAwareEx(IN PEX_RUNDOWN_REF_CACHE_AWARE RunRefCacheAware, ExfReleaseRundownProtectionCacheAwareEx(IN PEX_RUNDOWN_REF_CACHE_AWARE RunRefCacheAware,
IN ULONG Count) IN ULONG Count)
{ {
DBG_UNREFERENCED_PARAMETER(RunRefCacheAware); PEX_RUNDOWN_REF RunRef;
DBG_UNREFERENCED_PARAMETER(Count);
UNIMPLEMENTED; RunRef = ExGetRunRefForCurrentProcessor(RunRefCacheAware);
return ExfReleaseRundownProtectionEx(RunRef, Count);
} }
/* /*