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 776b355
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
38 changes: 38 additions & 0 deletions '
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
d 4d2e0eee102 hmm
d 7e1718b3c95 [NTOS:KE] Implement first version of x86 KeStartAllProcesssors
d 564497d53e1 [HALX86] Merge basic SMP Hal for x86
d 4a909b26953 [HALX86][NTOSKRNL] Implement IPIs in the Windows 2003 Style
d bffea1119fb [NTOS:KE] Implement KeFreezeExecution and KeThawExecution for SMP
d b32c3f83385 [NTOS:KE] Some needed boot hacks
d 754763b572a ahh

# Rebase 549ae11ac39..754763b572a onto 549ae11ac39 (7 commands)
#
# Commands:
# p, pick <commit> = use commit
# r, reword <commit> = use commit, but edit the commit message
# e, edit <commit> = use commit, but stop for amending
# s, squash <commit> = use commit, but meld into previous commit
# f, fixup [-C | -c] <commit> = like "squash" but keep only the previous
# commit's log message, unless -C is used, in which case
# keep only this commit's message; -c is same as -C but
# opens the editor
# x, exec <command> = run command (the rest of the line) using shell
# b, break = stop here (continue rebase later with 'git rebase --continue')
# d, drop <commit> = remove commit
# l, label <label> = label current HEAD with a name
# t, reset <label> = reset HEAD to a label
# m, merge [-C <commit> | -c <commit>] <label> [# <oneline>]
# create a merge commit using the original merge commit's
# message (or the oneline, if no original merge commit was
# specified); use -c <commit> to reword the commit message
# u, update-ref <ref> = track a placeholder for the <ref> to be updated
# to this position in the new commits. The <ref> is
# updated at the end of the rebase
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
# However, if you remove everything, the rebase will be aborted.
#
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 776b355

Please sign in to comment.