[NTOS:KE] Move RtlpUse16ByteSLists initialization into KiInitializeKernel
[reactos.git] / ntoskrnl / ke / amd64 / krnlinit.c
index 456bc71..22833e0 100644 (file)
@@ -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;