[HAL]: HalpActiveProcessors is KAFFINITY, not LONG. Also, MP HAL lacked it.
authorSir Richard <sir_richard@svn.reactos.org>
Thu, 1 Apr 2010 20:42:43 +0000 (20:42 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Thu, 1 Apr 2010 20:42:43 +0000 (20:42 +0000)
svn path=/trunk/; revision=46651

reactos/hal/halx86/mp/processor_mp.c
reactos/hal/halx86/up/processor.c

index 126bccb..069a96b 100644 (file)
@@ -18,6 +18,8 @@
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
 
+KAFFINITY HalpActiveProcessors;
 /* PRIVATE FUNCTIONS *********************************************************/
 
 VOID
 /* PRIVATE FUNCTIONS *********************************************************/
 
 VOID
index 662514b..2e92a2c 100644 (file)
@@ -12,7 +12,7 @@
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
 
-LONG HalpActiveProcessors;
+KAFFINITY HalpActiveProcessors;
 KAFFINITY HalpDefaultInterruptAffinity;
 
 /* PRIVATE FUNCTIONS *********************************************************/
 KAFFINITY HalpDefaultInterruptAffinity;
 
 /* PRIVATE FUNCTIONS *********************************************************/
@@ -41,7 +41,7 @@ HalInitializeProcessor(IN ULONG ProcessorNumber,
     KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT;
 
     /* Update the interrupt affinity and processor mask */
     KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT;
 
     /* Update the interrupt affinity and processor mask */
-    InterlockedBitTestAndSet(&HalpActiveProcessors, ProcessorNumber);
+    InterlockedBitTestAndSet((PLONG)&HalpActiveProcessors, ProcessorNumber);
     InterlockedBitTestAndSet((PLONG)&HalpDefaultInterruptAffinity,
                              ProcessorNumber);
 
     InterlockedBitTestAndSet((PLONG)&HalpDefaultInterruptAffinity,
                              ProcessorNumber);