Skip to content

Commit

Permalink
[HALX86] Fix SYNCH_LEVEL differences between UP and SMP in HAL
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Nov 3, 2023
1 parent c6c6c62 commit 141b0a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hal/halx86/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@

/* GLOBALS ********************************************************************/

extern KIRQL HalpIrqlSynchLevel;

#undef SYNCH_LEVEL
#define SYNCH_LEVEL HalpIrqlSynchLevel

ULONG ApicVersion;
UCHAR HalpVectorToIndex[256];

Expand Down
6 changes: 6 additions & 0 deletions hal/halx86/generic/buildtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@
/* GLOBALS ******************************************************************/

const USHORT HalpBuildType = HAL_BUILD_TYPE;

#ifdef CONFIG_SMP
KIRQL HalpIrqlSynchLevel = (IPI_LEVEL - 2);
#else
KIRQL HalpIrqlSynchLevel = DISPATCH_LEVEL;
#endif

0 comments on commit 141b0a8

Please sign in to comment.