mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:18:11 +00:00
Kernel: Correct Spurious Interrupt handlers' controller model() method
We don't return blindly the IRQ controller's model(), if the Spurious IRQ handler is installed in IOAPIC environment, it's misleading to return "IOAPIC" string since IOAPIC doesn't really handle Spurious IRQs, therefore we return a "" string.
This commit is contained in:
parent
4cc96a7aa9
commit
666990fbcb
2 changed files with 7 additions and 1 deletions
|
@ -81,4 +81,10 @@ void SpuriousInterruptHandler::disable_interrupt_vector()
|
|||
m_responsible_irq_controller->disable(interrupt_number());
|
||||
}
|
||||
|
||||
const char* SpuriousInterruptHandler::controller() const
|
||||
{
|
||||
if (m_responsible_irq_controller->type() == IRQControllerType::i82093AA)
|
||||
return "";
|
||||
return m_responsible_irq_controller->model();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue