From 87c7a8930b31fa0e7853236ffbd2eecdccdf4582 Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Thu, 1 Apr 2010 20:42:43 +0000 Subject: [PATCH] [HAL]: HalpActiveProcessors is KAFFINITY, not LONG. Also, MP HAL lacked it. svn path=/trunk/; revision=46651 --- reactos/hal/halx86/mp/processor_mp.c | 2 ++ reactos/hal/halx86/up/processor.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/hal/halx86/mp/processor_mp.c b/reactos/hal/halx86/mp/processor_mp.c index 126bccbcbf6..069a96bb269 100644 --- a/reactos/hal/halx86/mp/processor_mp.c +++ b/reactos/hal/halx86/mp/processor_mp.c @@ -18,6 +18,8 @@ #define NDEBUG #include +KAFFINITY HalpActiveProcessors; + /* PRIVATE FUNCTIONS *********************************************************/ VOID diff --git a/reactos/hal/halx86/up/processor.c b/reactos/hal/halx86/up/processor.c index 662514b19cf..2e92a2c6c86 100644 --- a/reactos/hal/halx86/up/processor.c +++ b/reactos/hal/halx86/up/processor.c @@ -12,7 +12,7 @@ #define NDEBUG #include -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); -- 2.17.1