mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +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:
parent
5f85f1abaa
commit
2428ba3832
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue