mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
Add IRQHandler class that can be subclasses to handle an IRQ.
Also move Keyboard to a class implementation using this pattern.
This commit is contained in:
parent
8f941561b4
commit
a9ca75c98b
8 changed files with 152 additions and 100 deletions
|
@ -55,10 +55,14 @@ union Descriptor {
|
|||
}
|
||||
} PACKED;
|
||||
|
||||
class IRQHandler;
|
||||
|
||||
void gdt_init();
|
||||
void idt_init();
|
||||
void registerInterruptHandler(BYTE number, void (*f)());
|
||||
void registerUserCallableInterruptHandler(BYTE number, void (*f)());
|
||||
void registerIRQHandler(BYTE number, IRQHandler&);
|
||||
void unregisterIRQHandler(BYTE number, IRQHandler&);
|
||||
void flushIDT();
|
||||
void flushGDT();
|
||||
void loadTaskRegister(WORD selector);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue