mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[NTOSKRNL] Implement ExSizeOfRundownProtectionCacheAware()
This commit is contained in:
parent
ce94d37dbe
commit
47d309b262
1 changed files with 18 additions and 3 deletions
|
@ -606,13 +606,28 @@ ExInitializeRundownProtectionCacheAware(IN PEX_RUNDOWN_REF_CACHE_AWARE RunRefCac
|
|||
}
|
||||
|
||||
/*
|
||||
* @unimplemented NT5.2
|
||||
* @implemented NT5.2
|
||||
*/
|
||||
SIZE_T
|
||||
NTAPI
|
||||
ExSizeOfRundownProtectionCacheAware(VOID)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return 0;
|
||||
SIZE_T Size;
|
||||
|
||||
PAGED_CODE();
|
||||
|
||||
/* Compute the needed size for runrefs */
|
||||
if (KeNumberProcessors <= 1)
|
||||
{
|
||||
Size = sizeof(EX_RUNDOWN_REF);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* We +1, to have enough room for alignment */
|
||||
Size = (KeNumberProcessors + 1) * KeGetRecommendedSharedDataAlignment();
|
||||
}
|
||||
|
||||
/* Return total size (master structure and runrefs) */
|
||||
return Size + sizeof(EX_RUNDOWN_REF_CACHE_AWARE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue