Skip to content

Commit

Permalink
[HALX86] Use InterlockedBitTestAndSetAffinity instead of InterlockedB…
Browse files Browse the repository at this point in the history
…itTestAndSet
  • Loading branch information
tkreuzer committed Dec 3, 2023
1 parent 9615891 commit 48395a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hal/halx86/generic/halinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ HalInitializeProcessor(
KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT;

/* Update the interrupt affinity and processor mask */
InterlockedBitTestAndSet((PLONG)&HalpActiveProcessors, ProcessorNumber);
InterlockedBitTestAndSet((PLONG)&HalpDefaultInterruptAffinity,
InterlockedBitTestAndSetAffinity(&HalpActiveProcessors, ProcessorNumber);
InterlockedBitTestAndSetAffinity(&HalpDefaultInterruptAffinity,
ProcessorNumber);

/* Register routines for KDCOM */
Expand Down

0 comments on commit 48395a7

Please sign in to comment.