[RSHELL]
[reactos.git] / ntoskrnl / ke / krnlinit.c
index 55ec779..128d90f 100644 (file)
 
 /* GLOBALS *******************************************************************/
 
+/* Portable CPU Features and Flags */
+USHORT KeProcessorArchitecture;
+USHORT KeProcessorLevel;
+USHORT KeProcessorRevision;
+ULONG KeFeatureBits;
+KAFFINITY KeActiveProcessors = 1;
+
 /* System call count */
 ULONG KiServiceLimit = NUMBER_OF_SYSCALLS;
 
@@ -24,6 +31,9 @@ PLOADER_PARAMETER_BLOCK KeLoaderBlock;
 /* PRCB Array */
 PKPRCB KiProcessorBlock[MAXIMUM_PROCESSORS];
 
+/* Number of processors */
+UCHAR KeNumberProcessors = 0;
+
 /* NUMA Node Support */
 KNODE KiNode0;
 PKNODE KeNodeBlock[1];
@@ -57,6 +67,7 @@ KSPIN_LOCK KiReverseStallIpiLock;
 
 VOID
 NTAPI
+INIT_FUNCTION
 KiInitSystem(VOID)
 {
     ULONG i;
@@ -108,6 +119,7 @@ KiInitSystem(VOID)
 
 LARGE_INTEGER
 NTAPI
+INIT_FUNCTION
 KiComputeReciprocal(IN LONG Divisor,
                     OUT PUCHAR Shift)
 {
@@ -171,6 +183,7 @@ KiComputeReciprocal(IN LONG Divisor,
 
 VOID
 NTAPI
+INIT_FUNCTION
 KiInitSpinLocks(IN PKPRCB Prcb,
                 IN CCHAR Number)
 {
@@ -276,6 +289,7 @@ KiInitSpinLocks(IN PKPRCB Prcb,
 
 BOOLEAN
 NTAPI
+INIT_FUNCTION
 KeInitSystem(VOID)
 {
     /* Check if Threaded DPCs are enabled */