From d8d46a00c37b7d46484e7947f67e0d9a7f984c4b Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 30 Nov 2023 14:04:21 +0200 Subject: [PATCH] [HALX86] Use InterlockedBitTestAndSetAffinity instead of InterlockedBitTestAndSet --- hal/halx86/generic/halinit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();