[HALX86] Use InterlockedBitTestAndSetAffinity instead of InterlockedBitTestAndSet

This commit is contained in:
Timo Kreuzer 2023-11-30 14:04:21 +02:00
parent d87b45bee7
commit d8d46a00c3

View file

@ -54,9 +54,8 @@ HalInitializeProcessor(
KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT; KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT;
/* Update the interrupt affinity and processor mask */ /* Update the interrupt affinity and processor mask */
InterlockedBitTestAndSet((PLONG)&HalpActiveProcessors, ProcessorNumber); InterlockedBitTestAndSetAffinity(&HalpActiveProcessors, ProcessorNumber);
InterlockedBitTestAndSet((PLONG)&HalpDefaultInterruptAffinity, InterlockedBitTestAndSetAffinity(&HalpDefaultInterruptAffinity, ProcessorNumber);
ProcessorNumber);
/* Register routines for KDCOM */ /* Register routines for KDCOM */
HalpRegisterKdSupportFunctions(); HalpRegisterKdSupportFunctions();