https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b5c35c03b69c31509588fd25178031d08e2a0f32

commit b5c35c03b69c31509588fd25178031d08e2a0f32
Author:     Justin Miller <[email protected]>
AuthorDate: Sun Mar 27 05:11:02 2022 +0000
Commit:     George BiČ™oc <[email protected]>
CommitDate: Wed Dec 28 21:09:41 2022 +0100

    [NTOS] Swap MAXIMUM_PROCESSORS with NUMBER_POOL_LOOKASIDE_LISTS
---
 ntoskrnl/ex/lookas.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ntoskrnl/ex/lookas.c b/ntoskrnl/ex/lookas.c
index 9b1d456f563..2fa8ea6d488 100644
--- a/ntoskrnl/ex/lookas.c
+++ b/ntoskrnl/ex/lookas.c
@@ -20,8 +20,8 @@ LIST_ENTRY ExpPagedLookasideListHead;
 KSPIN_LOCK ExpPagedLookasideListLock;
 LIST_ENTRY ExSystemLookasideListHead;
 LIST_ENTRY ExPoolLookasideListHead;
-GENERAL_LOOKASIDE ExpSmallNPagedPoolLookasideLists[MAXIMUM_PROCESSORS];
-GENERAL_LOOKASIDE ExpSmallPagedPoolLookasideLists[MAXIMUM_PROCESSORS];
+GENERAL_LOOKASIDE 
ExpSmallNPagedPoolLookasideLists[NUMBER_POOL_LOOKASIDE_LISTS];
+GENERAL_LOOKASIDE ExpSmallPagedPoolLookasideLists[NUMBER_POOL_LOOKASIDE_LISTS];
 
 /* PRIVATE FUNCTIONS *********************************************************/
 
@@ -99,7 +99,7 @@ ExpInitLookasideLists(VOID)
     KeInitializeSpinLock(&ExpPagedLookasideListLock);
 
     /* Initialize the system lookaside lists */
-    for (i = 0; i < MAXIMUM_PROCESSORS; i++)
+    for (i = 0; i < NUMBER_POOL_LOOKASIDE_LISTS; i++)
     {
         /* Initialize the non-paged list */
         ExInitializeSystemLookasideList(&ExpSmallNPagedPoolLookasideLists[i],

Reply via email to