https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1aa70ef6d13991cf8d56a9bad8a3ba0de3d8af86
commit 1aa70ef6d13991cf8d56a9bad8a3ba0de3d8af86 Author: Ivan Labutin <[email protected]> AuthorDate: Fri Nov 10 01:23:55 2017 +0300 [NTOS:KE] Move RtlpUse16ByteSLists initialization into KiInitializeKernel --- ntoskrnl/ke/amd64/kiinit.c | 4 ---- ntoskrnl/ke/amd64/krnlinit.c | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ntoskrnl/ke/amd64/kiinit.c b/ntoskrnl/ke/amd64/kiinit.c index 0ca55f346b..a8647203ce 100644 --- a/ntoskrnl/ke/amd64/kiinit.c +++ b/ntoskrnl/ke/amd64/kiinit.c @@ -19,8 +19,6 @@ /* GLOBALS *******************************************************************/ -extern BOOLEAN RtlpUse16ByteSLists; - /* Function pointer for early debug prints */ ULONG (*FrLdrDbgPrint)(const char *Format, ...); @@ -84,8 +82,6 @@ KiInitMachineDependent(VOID) // KeBugCheckEx(NO_PAGES_AVAILABLE, 2, PAGE_SIZE * 2, 0, 0); // } - /* Initialize 8/16 bit SList support */ - RtlpUse16ByteSLists = (KeFeatureBits & KF_CMPXCHG16B) ? TRUE: FALSE; } VOID diff --git a/ntoskrnl/ke/amd64/krnlinit.c b/ntoskrnl/ke/amd64/krnlinit.c index 456bc713f4..22833e0726 100644 --- a/ntoskrnl/ke/amd64/krnlinit.c +++ b/ntoskrnl/ke/amd64/krnlinit.c @@ -16,6 +16,8 @@ extern ULONG_PTR MainSSDT[]; extern UCHAR MainSSPT[]; +extern BOOLEAN RtlpUse16ByteSLists; + /* FUNCTIONS *****************************************************************/ VOID @@ -153,6 +155,9 @@ KiInitializeKernel(IN PKPROCESS InitProcess, /* Set boot-level flags */ KeFeatureBits = Prcb->FeatureBits; + /* Initialize 8/16 bit SList support */ + RtlpUse16ByteSLists = (KeFeatureBits & KF_CMPXCHG16B) ? TRUE : FALSE; + /* Set the current MP Master KPRCB to the Boot PRCB */ Prcb->MultiThreadSetMaster = Prcb;
