mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-30 00:07:59 +00:00
Better printing on SMP status
This commit is contained in:
parent
747c08708b
commit
5d17c5a411
@ -260,7 +260,7 @@ namespace APIC
|
|||||||
this->lapic->Write(APIC_TDCR, 0x3);
|
this->lapic->Write(APIC_TDCR, 0x3);
|
||||||
this->lapic->Write(APIC_TICR, TicksIn10ms / 10);
|
this->lapic->Write(APIC_TICR, TicksIn10ms / 10);
|
||||||
trace("APIC Timer (CPU %d): %d ticks in 10ms", GetCurrentCPU()->ID, TicksIn10ms / 10);
|
trace("APIC Timer (CPU %d): %d ticks in 10ms", GetCurrentCPU()->ID, TicksIn10ms / 10);
|
||||||
KPrint("APIC Timer: %d ticks in 10ms", TicksIn10ms / 10);
|
KPrint("APIC Timer: \e8888FF%ld\eCCCCCC ticks in 10ms", TicksIn10ms / 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer::~Timer()
|
Timer::~Timer()
|
||||||
|
@ -45,7 +45,7 @@ extern "C" void StartCPU()
|
|||||||
Interrupts::InitializeTimer(CoreID);
|
Interrupts::InitializeTimer(CoreID);
|
||||||
|
|
||||||
CPU::Interrupts(CPU::Enable);
|
CPU::Interrupts(CPU::Enable);
|
||||||
KPrint("CPU %d is online", CoreID);
|
KPrint("\e058C19CPU \e8888FF%d \e058C19is online", CoreID);
|
||||||
CPUEnabled = true;
|
CPUEnabled = true;
|
||||||
CPU::Stop(); // Stop and surpress interrupts.
|
CPU::Stop(); // Stop and surpress interrupts.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user