Author: sir_richard
Date: Thu Apr 1 22:42:43 2010
New Revision: 46651
URL:
http://svn.reactos.org/svn/reactos?rev=46651&view=rev
Log:
[HAL]: HalpActiveProcessors is KAFFINITY, not LONG. Also, MP HAL lacked it.
Modified:
trunk/reactos/hal/halx86/mp/processor_mp.c
trunk/reactos/hal/halx86/up/processor.c
Modified: trunk/reactos/hal/halx86/mp/processor_mp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/mp/processor_mp…
==============================================================================
--- trunk/reactos/hal/halx86/mp/processor_mp.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/mp/processor_mp.c [iso-8859-1] Thu Apr 1 22:42:43 2010
@@ -18,6 +18,8 @@
#define NDEBUG
#include <debug.h>
+KAFFINITY HalpActiveProcessors;
+
/* PRIVATE FUNCTIONS *********************************************************/
VOID
Modified: trunk/reactos/hal/halx86/up/processor.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/up/processor.c?…
==============================================================================
--- trunk/reactos/hal/halx86/up/processor.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/up/processor.c [iso-8859-1] Thu Apr 1 22:42:43 2010
@@ -12,7 +12,7 @@
#define NDEBUG
#include <debug.h>
-LONG HalpActiveProcessors;
+KAFFINITY HalpActiveProcessors;
KAFFINITY HalpDefaultInterruptAffinity;
/* PRIVATE FUNCTIONS *********************************************************/
@@ -41,7 +41,7 @@
KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT;
/* Update the interrupt affinity and processor mask */
- InterlockedBitTestAndSet(&HalpActiveProcessors, ProcessorNumber);
+ InterlockedBitTestAndSet((PLONG)&HalpActiveProcessors, ProcessorNumber);
InterlockedBitTestAndSet((PLONG)&HalpDefaultInterruptAffinity,
ProcessorNumber);