mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Kernel: Fix counting interrupts
Move counting interrupts out of the handle_interrupt method so that it is done in all cases without the interrupt handler having to implement it explicitly. Also make the counter an atomic value as e.g. the LocalAPIC interrupts may be triggered on multiple processors simultaneously. Fixes #4297
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 01:05:20 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/5e08ae4e140 Pull-request: https://github.com/SerenityOS/serenity/pull/4306 Issue: https://github.com/SerenityOS/serenity/issues/4297
@@ -62,8 +62,5 @@ void GenericInterruptHandler::change_interrupt_number(u8 number)
|
||||
m_interrupt_number = number;
|
||||
register_generic_interrupt_handler(InterruptManagement::acquire_mapped_interrupt_number(interrupt_number()), *this);
|
||||
}
|
||||
void GenericInterruptHandler::increment_invoking_counter()
|
||||
{
|
||||
m_invoking_count++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user