mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
Kernel: Replace IRQHandler with the new InterruptHandler class
System components that need an IRQ handling are now inheriting the InterruptHandler class. In addition to that, the initialization process of PATAChannel was changed to fit the changes. PATAChannel, E1000NetworkAdapter and RTL8139NetworkAdapter are now inheriting from PCI::Device instead of InterruptHandler directly.
This commit is contained in:
parent
1ee37245cd
commit
6c72736b26
29 changed files with 193 additions and 169 deletions
|
@ -240,7 +240,7 @@ public:
|
|||
u64 raw[4];
|
||||
};
|
||||
|
||||
class IRQHandler;
|
||||
class SharedInterruptHandler;
|
||||
struct RegisterDump;
|
||||
|
||||
void gdt_init();
|
||||
|
@ -248,8 +248,9 @@ void idt_init();
|
|||
void sse_init();
|
||||
void register_interrupt_handler(u8 number, void (*f)());
|
||||
void register_user_callable_interrupt_handler(u8 number, void (*f)());
|
||||
void register_irq_handler(u8 number, IRQHandler&);
|
||||
void unregister_irq_handler(u8 number, IRQHandler&);
|
||||
void register_shared_interrupt_handler(u8 number, SharedInterruptHandler&);
|
||||
SharedInterruptHandler& get_interrupt_handler(u8 number);
|
||||
void unregister_shared_interrupt_handler(u8 number, SharedInterruptHandler&);
|
||||
void flush_idt();
|
||||
void flush_gdt();
|
||||
void load_task_register(u16 selector);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue