diff --git a/hal/halx86/generic/halinit.c b/hal/halx86/generic/halinit.c index bbd3c49204e..70822fd5cc5 100644 --- a/hal/halx86/generic/halinit.c +++ b/hal/halx86/generic/halinit.c @@ -54,9 +54,8 @@ HalInitializeProcessor( KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT; /* Update the interrupt affinity and processor mask */ - InterlockedBitTestAndSet((PLONG)&HalpActiveProcessors, ProcessorNumber); - InterlockedBitTestAndSet((PLONG)&HalpDefaultInterruptAffinity, - ProcessorNumber); + InterlockedBitTestAndSetAffinity(&HalpActiveProcessors, ProcessorNumber); + InterlockedBitTestAndSetAffinity(&HalpDefaultInterruptAffinity, ProcessorNumber); /* Register routines for KDCOM */ HalpRegisterKdSupportFunctions();