/// Initialize deadlock detector
VOID DLDInit(ULONG MaxThrdCount /// Maximum supported number of threads
) {
- if (*KeNumberProcessors>1) {
+ if (KeNumberProcessors>1) {
KdPrint(("Deadlock Detector is designed for uniprocessor machines only!\n"));
BrutePoint();
}
NdisSystemProcessorCount(
VOID)
{
- return (CCHAR)KeNumberProcessors;
+ return KeNumberProcessors;
}
//
// Exported Hardware Data
//
-extern KAFFINITY NTSYSAPI KeActiveProcessors;
-#if (NTDDI_VERSION >= NTDDI_LONGHORN)
-extern volatile CCHAR NTSYSAPI KeNumberProcessors;
-#else
-#if (NTDDI_VERSION >= NTDDI_WINXP)
-extern CCHAR NTSYSAPI KeNumberProcessors;
-#else
-//extern PCCHAR KeNumberProcessors;
-extern NTSYSAPI CCHAR KeNumberProcessors; //FIXME: Note to Alex: I won't fix this atm, since I prefer to discuss this with you first.
-#endif
-#endif
extern ULONG NTSYSAPI KiDmaIoCoherency;
extern ULONG NTSYSAPI KeMaximumIncrement;
extern ULONG NTSYSAPI KeMinimumIncrement;
IN ULONG Length
);
+extern KAFFINITY KeActiveProcessors;
extern PKNMI_HANDLER_CALLBACK KiNmiCallbackListHead;
extern KSPIN_LOCK KiNmiCallbackListLock;
extern PVOID KeUserApcDispatcher;
/* PNP GUIDs */
#include <umpnpmgr/sysguid.h>
-//
-// Define the internal versions of external and public global data
-//
-#define KeNumberProcessors _KeNumberProcessors
-extern UCHAR _KeNumberProcessors;
#define ExRaiseStatus RtlRaiseStatus
//
KeLoaderBlock = LoaderBlock;
/* Get the current CPU number */
- Cpu = (CCHAR)KeNumberProcessors++; // FIXME
+ Cpu = KeNumberProcessors++; // FIXME
/* LoaderBlock initialization for Cpu 0 */
if (Cpu == 0)
PKPRCB KiProcessorBlock[MAXIMUM_PROCESSORS];
/* Number of processors */
-UCHAR KeNumberProcessors = 0;
+CCHAR KeNumberProcessors = 0;
/* NUMA Node Support */
KNODE KiNode0;
@ stdcall KeLeaveGuardedRegion() _KeLeaveGuardedRegion
@ extern KeLoaderBlock
@ cdecl -arch=x86_64 -private KeLowerIrql(long)
-@ extern KeNumberProcessors _KeNumberProcessors
+@ extern KeNumberProcessors
@ stdcall -arch=i386,arm KeProfileInterrupt(ptr)
@ stdcall KeProfileInterruptWithSource(ptr long)
@ stdcall KePulseEvent(ptr long long)