1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

Kernel: Remove dbgln when unregistering an unhandled x86_64 interrupt

A lot of interrupt numbers are initialized with the unhandled interrupt
handler. Whenever a new handler is registered on one of these
interrupts, the old handler is unregistered first. Let's not be verbose
about this since it is perfectly normal.
This commit is contained in:
Jelle Raaijmakers 2023-01-17 20:48:57 +01:00
parent 5f85f1abaa
commit 2428ba3832

View file

@ -515,10 +515,8 @@ void unregister_generic_interrupt_handler(u8 interrupt_number, GenericInterruptH
{
auto*& handler_slot = s_interrupt_handler[interrupt_number];
VERIFY(handler_slot != nullptr);
if (handler_slot->type() == HandlerType::UnhandledInterruptHandler) {
dbgln("Trying to unregister unused handler (?)");
if (handler_slot->type() == HandlerType::UnhandledInterruptHandler)
return;
}
if (handler_slot->is_shared_handler() && !handler_slot->is_sharing_with_others()) {
VERIFY(handler_slot->type() == HandlerType::SharedIRQHandler);
auto* shared_handler = static_cast<SharedIRQHandler*>(handler_slot);