mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
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:
parent
7a6d5a7b8b
commit
b91df26d4a
Notes:
sideshowbarker
2024-07-19 01:59:31 +09:00
Author: https://github.com/supercomputer7
Commit: b91df26d4a
Pull-request: https://github.com/SerenityOS/serenity/pull/7799
43 changed files with 125 additions and 71 deletions
|
@ -27,7 +27,9 @@ public:
|
|||
{
|
||||
VERIFY(!m_registered);
|
||||
}
|
||||
virtual void handle_interrupt(const RegisterState& regs) = 0;
|
||||
// Note: this method returns boolean value, to indicate if the handler handled
|
||||
// the interrupt or not. This is useful for shared handlers mostly.
|
||||
virtual bool handle_interrupt(const RegisterState& regs) = 0;
|
||||
|
||||
void will_be_destroyed();
|
||||
bool is_registered() const { return m_registered; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue