mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 19:19:44 +03:00
Kernel: Convert klog() => AK::Format in IOAPIC
This commit is contained in:
parent
a1f37ebcb8
commit
df65c8f2eb
Notes:
sideshowbarker
2024-07-18 21:28:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/df65c8f2eb3
@ -54,9 +54,9 @@ UNMAP_AFTER_INIT IOAPIC::IOAPIC(PhysicalAddress address, u32 gsi_base)
|
|||||||
, m_redirection_entries_count((read_register(0x1) >> 16) + 1)
|
, m_redirection_entries_count((read_register(0x1) >> 16) + 1)
|
||||||
{
|
{
|
||||||
InterruptDisabler disabler;
|
InterruptDisabler disabler;
|
||||||
klog() << "IOAPIC ID: 0x" << String::format("%x", m_id);
|
dmesgln("IOAPIC ID: {:#x}", m_id);
|
||||||
klog() << "IOAPIC Version: 0x" << String::format("%x", m_version) << ", Redirection Entries count - " << m_redirection_entries_count;
|
dmesgln("IOAPIC Version: {:#x}, redirection entries: {}", m_version, m_redirection_entries_count);
|
||||||
klog() << "IOAPIC Arbitration ID 0x" << String::format("%x", read_register(0x2));
|
dmesgln("IOAPIC Arbitration ID {:#x}", read_register(0x2));
|
||||||
mask_all_redirection_entries();
|
mask_all_redirection_entries();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ void IOAPIC::spurious_eoi(const GenericInterruptHandler& handler) const
|
|||||||
InterruptDisabler disabler;
|
InterruptDisabler disabler;
|
||||||
VERIFY(handler.type() == HandlerType::SpuriousInterruptHandler);
|
VERIFY(handler.type() == HandlerType::SpuriousInterruptHandler);
|
||||||
VERIFY(handler.interrupt_number() == APIC::spurious_interrupt_vector());
|
VERIFY(handler.interrupt_number() == APIC::spurious_interrupt_vector());
|
||||||
klog() << "IOAPIC::spurious_eoi - Spurious Interrupt occurred";
|
dbgln("IOAPIC: Spurious interrupt");
|
||||||
}
|
}
|
||||||
|
|
||||||
void IOAPIC::map_isa_interrupts()
|
void IOAPIC::map_isa_interrupts()
|
||||||
|
Loading…
Reference in New Issue
Block a user