Skip to content

Commit

Permalink
[HALX86] Some improvements / bugfixes for IPI support functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tkreuzer committed Dec 3, 2023
1 parent 48395a7 commit f195d79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hal/halx86/apic/apicsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extern PPROCESSOR_IDENTITY HalpProcessorIdentity;
APIC_DSH_Destination
APIC_DSH_Self
APIC_DSH_AllIncludingSelf
APIC_DSH_AllExclusingSelf
APIC_DSH_AllExcludingSelf
\see "AMD64 Architecture Programmer's Manual Volume 2 System Programming"
Chapter 16 "Advanced Programmable Interrupt Controller (APIC)"
Expand Down Expand Up @@ -170,7 +170,7 @@ HalRequestIpiSpecifyVector(
_In_ KAFFINITY TargetSet,
_In_ UCHAR Vector)
{
KAFFINITY ActiveProcessors = KeQueryActiveProcessors();
KAFFINITY ActiveProcessors = HalpActiveProcessors;
KAFFINITY RemainingSet, SetMember;
ULONG ProcessorIndex;
ULONG LApicId;
Expand Down Expand Up @@ -277,7 +277,7 @@ HalpSendNMI(
ULONG LApicId;

/* Make sure we do not send an NMI to ourselves */
ASSERT((TargetSet & ~KeGetCurrentPrcb()->SetMember) == 0);
ASSERT((TargetSet & KeGetCurrentPrcb()->SetMember) == 0);

/* Loop while we have more processors */
RemainingSet = TargetSet;
Expand Down
2 changes: 2 additions & 0 deletions hal/halx86/generic/up.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ NTAPI
HalSendNMI(
_In_ KAFFINITY TargetSet)
{
NOTHING;
}

VOID
Expand All @@ -48,6 +49,7 @@ HalSendSoftwareInterrupt(
_In_ KAFFINITY TargetSet,
_In_ KIRQL Irql)
{
NOTHING;
}

#endif // _M_AMD64
2 changes: 1 addition & 1 deletion hal/halx86/smp/ipi.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ HalSendNMI(

// See:
// - https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Runtime/r0drv/nt/internal-r0drv-nt.h#L53
// https://github.com/mirror/vbox/blob/b9657cd5351cf17432b664009cc25bb480dc64c1/src/VBox/Runtime/r0drv/nt/mp-r0drv-nt.cpp#L683
// - https://github.com/mirror/vbox/blob/b9657cd5351cf17432b664009cc25bb480dc64c1/src/VBox/Runtime/r0drv/nt/mp-r0drv-nt.cpp#L683
VOID
NTAPI
HalSendSoftwareInterrupt(
Expand Down

0 comments on commit f195d79

Please sign in to comment.