Move interrupt dispatch to InterruptHandler; make individual handlers private
This commit is contained in:
parent
683b79fa07
commit
cd39d95a1c
2 changed files with 42 additions and 19 deletions
|
@ -55,13 +55,16 @@ struct InterruptHandler
|
|||
void enableInterrupts() const;
|
||||
void disableInterrupts() const;
|
||||
|
||||
void postInterrupt(uint8_t interrupt);
|
||||
|
||||
void finishHardwareInterrupt(uint8_t irq);
|
||||
void dispatchHardwareInterrupt(uint8_t irq);
|
||||
|
||||
private:
|
||||
PIC mPIC;
|
||||
IDT mIDT;
|
||||
|
||||
void doTimerInterrupt();
|
||||
void doKeyboardInterrupt();
|
||||
|
||||
void finishHardwareInterrupt(uint8_t irq) const;
|
||||
};
|
||||
|
||||
} /* namespace x86 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue