stos/amd64: cpu: Ignore non online capable processors

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-27 19:47:19 +00:00
parent 54faa60aca
commit 5e99093e9f
+11
View File
@@ -19,6 +19,9 @@
#define MP_LOG_CAP 4
#define MP_DEBUG 1
/* Local APIC flags */
#define LAPIC_ONLINE_CAPABLE BIT(1)
#define DTRACE(Fmt, ...) \
TRACE("[ MP ]: " Fmt, ##__VA_ARGS__)
@@ -54,6 +57,14 @@ ApKick(ACPI_LOCAL_APIC *Lapic)
return;
}
/*
* Some processor entries may not be "online capable", if we
* encounter such entries, ignore it.
*/
if (!ISSET(Lapic->Flags, LAPIC_ONLINE_CAPABLE)) {
return;
}
/* Send an INIT IPI to the processor */
MdLapicSendIpi(
0,