mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
Kernel: Return real handler purpose when registered to spurious handler
If we registered a real interrupt handler to a spurious one, we should return its purpose instead of the spurious purpose string.
This commit is contained in:
@@ -57,6 +57,13 @@ bool SpuriousInterruptHandler::eoi()
|
||||
return false;
|
||||
}
|
||||
|
||||
const char* SpuriousInterruptHandler::purpose() const
|
||||
{
|
||||
if (!m_real_handler)
|
||||
return "Spurious Interrupt Handler";
|
||||
return m_real_handler->purpose();
|
||||
}
|
||||
|
||||
SpuriousInterruptHandler::SpuriousInterruptHandler(u8 irq)
|
||||
: GenericInterruptHandler(irq)
|
||||
, m_responsible_irq_controller(InterruptManagement::the().get_responsible_irq_controller(irq))
|
||||
|
||||
Reference in New Issue
Block a user