mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
a9ca75c98b
Also move Keyboard to a class implementation using this pattern.
25 lines
372 B
C++
25 lines
372 B
C++
#include "IRQHandler.h"
|
|
#include "i386.h"
|
|
#include "PIC.h"
|
|
|
|
IRQHandler::IRQHandler(byte irq)
|
|
: m_irqNumber(irq)
|
|
{
|
|
registerIRQHandler(m_irqNumber, *this);
|
|
}
|
|
|
|
IRQHandler::~IRQHandler()
|
|
{
|
|
unregisterIRQHandler(m_irqNumber, *this);
|
|
}
|
|
|
|
void IRQHandler::enableIRQ()
|
|
{
|
|
PIC::enable(m_irqNumber);
|
|
}
|
|
|
|
void IRQHandler::disableIRQ()
|
|
{
|
|
PIC::disable(m_irqNumber);
|
|
}
|
|
|