mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
Kernel: Convert klog() => AK::Format in InterruptManagement
This commit is contained in:
parent
8a7fe86ee0
commit
ad2f95e35a
1 changed files with 3 additions and 3 deletions
|
@ -142,7 +142,7 @@ UNMAP_AFTER_INIT InterruptManagement::InterruptManagement()
|
|||
|
||||
UNMAP_AFTER_INIT void InterruptManagement::switch_to_pic_mode()
|
||||
{
|
||||
klog() << "Interrupts: Switch to Legacy PIC mode";
|
||||
dmesgln("Interrupts: Switch to Legacy PIC mode");
|
||||
InterruptDisabler disabler;
|
||||
m_smp_enabled = false;
|
||||
m_interrupt_controllers[0] = adopt(*new PIC());
|
||||
|
@ -161,7 +161,7 @@ UNMAP_AFTER_INIT void InterruptManagement::switch_to_pic_mode()
|
|||
|
||||
UNMAP_AFTER_INIT void InterruptManagement::switch_to_ioapic_mode()
|
||||
{
|
||||
klog() << "Interrupts: Switch to IOAPIC mode";
|
||||
dmesgln("Interrupts: Switch to IOAPIC mode");
|
||||
InterruptDisabler disabler;
|
||||
|
||||
if (m_madt.is_null()) {
|
||||
|
@ -175,7 +175,7 @@ UNMAP_AFTER_INIT void InterruptManagement::switch_to_ioapic_mode()
|
|||
m_smp_enabled = true;
|
||||
if (m_interrupt_controllers.size() == 1) {
|
||||
if (get_interrupt_controller(0).type() == IRQControllerType::i8259) {
|
||||
klog() << "Interrupts: NO IOAPIC detected, Reverting to PIC mode.";
|
||||
dmesgln("Interrupts: NO IOAPIC detected, Reverting to PIC mode.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue