[HAL]: HalpActiveProcessors is KAFFINITY, not LONG. Also, MP HAL lacked it.

svn path=/trunk/; revision=46651
This commit is contained in:
Sir Richard 2010-04-01 20:42:43 +00:00
parent a7d94d59ba
commit 87c7a8930b
2 changed files with 4 additions and 2 deletions

View file

@ -18,6 +18,8 @@
#define NDEBUG
#include <debug.h>
KAFFINITY HalpActiveProcessors;
/* PRIVATE FUNCTIONS *********************************************************/
VOID

View 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);