blob: 400944289c27ac43ccfb98280e2dcef873fc2d34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "IRQHandler.h"
#include "PIC.h"
#include <Kernel/Arch/i386/CPU.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);
}
|