mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
26 lines
383 B
C++
26 lines
383 B
C++
#include "IRQHandler.h"
|
|
#include "i386.h"
|
|
#include "PIC.h"
|
|
|
|
IRQHandler::IRQHandler(byte irq)
|
|
: m_irq_number(irq)
|
|
{
|
|
register_irq_handler(m_irq_number, *this);
|
|
}
|
|
|
|
IRQHandler::~IRQHandler()
|
|
{
|
|
unregister_irq_handler(m_irq_number, *this);
|
|
}
|
|
|
|
void IRQHandler::enable_irq()
|
|
{
|
|
PIC::enable(m_irq_number);
|
|
}
|
|
|
|
void IRQHandler::disable_irq()
|
|
{
|
|
PIC::disable(m_irq_number);
|
|
}
|
|
|