diff options
author | Liav A <liavalb@gmail.com> | 2021-06-05 09:00:18 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-17 16:53:25 +0200 |
commit | b91df26d4a14c2721d1920e76552012864c97790 (patch) | |
tree | f9b83151fe424057cbc7bbdd1e1b389387a601b7 /Kernel/Interrupts/SharedIRQHandler.h | |
parent | 7a6d5a7b8bae2e2058c72b662c4cccec99374b11 (diff) | |
download | serenity-b91df26d4a14c2721d1920e76552012864c97790.zip |
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.
Diffstat (limited to 'Kernel/Interrupts/SharedIRQHandler.h')
-rw-r--r-- | Kernel/Interrupts/SharedIRQHandler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Interrupts/SharedIRQHandler.h b/Kernel/Interrupts/SharedIRQHandler.h index 86272a1623..a5ccfc497e 100644 --- a/Kernel/Interrupts/SharedIRQHandler.h +++ b/Kernel/Interrupts/SharedIRQHandler.h @@ -19,7 +19,7 @@ class SharedIRQHandler final : public GenericInterruptHandler { public: static void initialize(u8 interrupt_number); virtual ~SharedIRQHandler(); - virtual void handle_interrupt(const RegisterState& regs) override; + virtual bool handle_interrupt(const RegisterState& regs) override; void register_handler(GenericInterruptHandler&); void unregister_handler(GenericInterruptHandler&); |