mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
a9ca75c98b
Also move Keyboard to a class implementation using this pattern.
26 lines
372 B
C++
26 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);
|
|
}
|
|
|