mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[NTOS:KE] Move RtlpUse16ByteSLists initialization into KiInitializeKernel
This commit is contained in:
committed by
Timo Kreuzer
parent
b9f592c054
commit
1aa70ef6d1
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user