mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:07:45 +00:00
Kernel/Interrupts: Initialize two spurious handlers when PIC is disabled
Even if the PIC was disabled it can still generate noise (spurious IRQs) so we need to register two handlers for handling such cases. Also, we declare interrupt service routine offset 0x20 to 0x2f as reserved, so when the PIC is disabled, we can handle spurious IRQs from the PIC at separate handlers.
This commit is contained in:
parent
7028a64997
commit
88c5992e0b
8 changed files with 169 additions and 5 deletions
|
@ -44,6 +44,7 @@ void register_interrupt_handler(u8 number, void (*handler)());
|
|||
void register_user_callable_interrupt_handler(u8 number, void (*handler)());
|
||||
GenericInterruptHandler& get_interrupt_handler(u8 interrupt_number);
|
||||
void register_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
|
||||
void register_disabled_interrupt_handler(u8 number, GenericInterruptHandler& handler);
|
||||
void unregister_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
|
||||
|
||||
void idt_init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue