[HAL]: HalpActiveProcessors is KAFFINITY, not LONG. Also, MP HAL lacked it.
[reactos.git] / reactos / hal / halx86 / up / processor.c
index 662514b..2e92a2c 100644 (file)
@@ -12,7 +12,7 @@
 #define NDEBUG
 #include <debug.h>
 
-LONG HalpActiveProcessors;
+KAFFINITY HalpActiveProcessors;
 KAFFINITY HalpDefaultInterruptAffinity;
 
 /* PRIVATE FUNCTIONS *********************************************************/
@@ -41,7 +41,7 @@ HalInitializeProcessor(IN ULONG ProcessorNumber,
     KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT;
 
     /* Update the interrupt affinity and processor mask */
-    InterlockedBitTestAndSet(&HalpActiveProcessors, ProcessorNumber);
+    InterlockedBitTestAndSet((PLONG)&HalpActiveProcessors, ProcessorNumber);
     InterlockedBitTestAndSet((PLONG)&HalpDefaultInterruptAffinity,
                              ProcessorNumber);