Kernel/Interrupts: Return boolean on whether we handled the interrupt

If we are in a shared interrupt handler, the called handlers might
indicate it was not their interrupt, so we should not increment the
call counter of these handlers.
This commit is contained in:
Liav A 2021-06-05 09:00:18 +03:00 committed by Andreas Kling
commit b91df26d4a
Notes: sideshowbarker 2024-07-19 01:59:31 +09:00
43 changed files with 125 additions and 71 deletions

View file

@ -19,8 +19,8 @@ class IRQHandler : public GenericInterruptHandler {
public:
virtual ~IRQHandler();
virtual void handle_interrupt(const RegisterState& regs) { handle_irq(regs); }
virtual void handle_irq(const RegisterState&) = 0;
virtual bool handle_interrupt(const RegisterState& regs) { return handle_irq(regs); }
virtual bool handle_irq(const RegisterState&) = 0;
void enable_irq();
void disable_irq();