stos/amd64: cpu: Ignore non online capable processors
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user