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/UnhandledInterruptHandler.cpp | |
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/UnhandledInterruptHandler.cpp')
-rw-r--r-- | Kernel/Interrupts/UnhandledInterruptHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Interrupts/UnhandledInterruptHandler.cpp b/Kernel/Interrupts/UnhandledInterruptHandler.cpp index baae025600..b899a52237 100644 --- a/Kernel/Interrupts/UnhandledInterruptHandler.cpp +++ b/Kernel/Interrupts/UnhandledInterruptHandler.cpp @@ -13,7 +13,7 @@ UnhandledInterruptHandler::UnhandledInterruptHandler(u8 interrupt_vector) { } -void UnhandledInterruptHandler::handle_interrupt(const RegisterState&) +bool UnhandledInterruptHandler::handle_interrupt(const RegisterState&) { PANIC("Interrupt: Unhandled vector {} was invoked for handle_interrupt(RegisterState&).", interrupt_number()); } |