mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-29 15:57:59 +00:00
Comparison of narrow type with wide type in loop condition
This commit is contained in:
parent
e4dcfdad0d
commit
7f70cafcf6
@ -84,7 +84,7 @@ namespace SMP
|
|||||||
KPrint("VirtualBox detected, disabling SMP");
|
KPrint("VirtualBox detected, disabling SMP");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (uint8_t i = 0; i < ((ACPI::MADT *)madt)->CPUCores + 1; i++)
|
for (uint16_t i = 0; i < ((ACPI::MADT *)madt)->CPUCores + 1; i++)
|
||||||
{
|
{
|
||||||
debug("Initializing CPU %d", i);
|
debug("Initializing CPU %d", i);
|
||||||
if ((((APIC::APIC *)Interrupts::apic[0])->Read(APIC::APIC::APIC_ID) >> 24) != ((ACPI::MADT *)madt)->lapic[i]->ACPIProcessorId)
|
if ((((APIC::APIC *)Interrupts::apic[0])->Read(APIC::APIC::APIC_ID) >> 24) != ((ACPI::MADT *)madt)->lapic[i]->ACPIProcessorId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user