diff options
author | Luke <luke.wilde@live.co.uk> | 2021-03-18 05:24:39 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-18 07:52:15 +0100 |
commit | cf9ce0d8578083fcbecf88b05008a6b27ba0d0dc (patch) | |
tree | d1d019c54530a2c4d39251f66c77beb4dfe489cc /Kernel/Storage/AHCIPortHandler.cpp | |
parent | b7dd5dc7c3cdc03a2d2539eaec46c82827ed8ba7 (diff) | |
download | serenity-cf9ce0d8578083fcbecf88b05008a6b27ba0d0dc.zip |
Kernel/Storage: Add a whole bunch of AHCI debug output
Diffstat (limited to 'Kernel/Storage/AHCIPortHandler.cpp')
-rw-r--r-- | Kernel/Storage/AHCIPortHandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/Storage/AHCIPortHandler.cpp b/Kernel/Storage/AHCIPortHandler.cpp index df5a0ac4dc..31edc6a5ae 100644 --- a/Kernel/Storage/AHCIPortHandler.cpp +++ b/Kernel/Storage/AHCIPortHandler.cpp @@ -44,6 +44,9 @@ AHCIPortHandler::AHCIPortHandler(AHCIController& controller, u8 irq, AHCI::Maske for (size_t index = 0; index < (((size_t)AHCI::Limits::MaxPorts * 512) / PAGE_SIZE); index++) { m_identify_metadata_pages.append(MM.allocate_supervisor_physical_page().release_nonnull()); } + + dbgln_if(AHCI_DEBUG, "AHCI Port Handler: IRQ {}", irq); + // Clear pending interrupts, if there are any! m_pending_ports_interrupts.set_all(); enable_irq(); @@ -101,9 +104,11 @@ AHCIPortHandler::~AHCIPortHandler() void AHCIPortHandler::handle_irq(const RegisterState&) { + dbgln_if(AHCI_DEBUG, "AHCI Port Handler: IRQ received"); for (auto port_index : m_pending_ports_interrupts.to_vector()) { auto port = m_handled_ports.get(port_index); VERIFY(port.has_value()); + dbgln_if(AHCI_DEBUG, "AHCI Port Handler: Handling IRQ for port {}", port_index); port.value()->handle_interrupt(); // We do this to clear the pending interrupt after we handled it. m_pending_ports_interrupts.set_at(port_index); |