Remove hardcoded shift in SIPI vector calculation

This commit is contained in:
2026-06-12 14:21:27 +02:00
parent 1a062ca05f
commit b0074637f8
3 changed files with 7 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ HL::Cpu::StartAllProcessors(VOID)
StartBlock = (PPROCESSOR_START_BLOCK)((PUCHAR)ApVirtualAddress + TrampolineCodeSize);
/* Get SIPI vector */
SipiVector = (ULONG)(ApPhysicalAddress.QuadPart >> 12);
SipiVector = (ULONG)(ApPhysicalAddress.QuadPart >> APIC_VECTOR_SIPI_SHIFT);
/* Loop over all CPUs */
CpuNumber = 0;