mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:02:58 +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
|
SIZE_T
|
||||||
NTAPI
|
NTAPI
|
||||||
ExSizeOfRundownProtectionCacheAware(VOID)
|
ExSizeOfRundownProtectionCacheAware(VOID)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
SIZE_T Size;
|
||||||
return 0;
|
|
||||||
|
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…
Add table
Add a link
Reference in a new issue