mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 05:35:52 +03:00
Kernel: Fix assertion statement in GenericInterruptHandler
We need to assert if interrupts are not disabled when changing the interrupt number of an interrupt handler. Before this fix, any change like this would lead to a crash, because we are using InterruptDisabler in IRQHandler::change_irq_number.
This commit is contained in:
parent
2cb32f8356
commit
82b0171812
Notes:
sideshowbarker
2024-07-19 02:20:09 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/82b01718123 Pull-request: https://github.com/SerenityOS/serenity/pull/3552 Issue: https://github.com/SerenityOS/serenity/issues/3531
@ -56,7 +56,7 @@ GenericInterruptHandler::~GenericInterruptHandler()
|
||||
|
||||
void GenericInterruptHandler::change_interrupt_number(u8 number)
|
||||
{
|
||||
ASSERT_INTERRUPTS_ENABLED();
|
||||
ASSERT_INTERRUPTS_DISABLED();
|
||||
ASSERT(!m_disable_remap);
|
||||
unregister_generic_interrupt_handler(InterruptManagement::acquire_mapped_interrupt_number(interrupt_number()), *this);
|
||||
m_interrupt_number = number;
|
||||
|
Loading…
Reference in New Issue
Block a user