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:
Tom 2020-12-02 09:41:52 -07:00 committed by Andreas Kling
commit 5e08ae4e14
Notes: sideshowbarker 2024-07-19 01:05:20 +09:00
4 changed files with 12 additions and 11 deletions

View file

@ -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++;
}
}