Files
banan-os/kernel/include/kernel/Interruptable.h
Bananymous 2d11ce9669 Kernel: Fix interrupt system
I had not understood how MSIs work and I was unnecessarily routing them
through IOAPIC. This is not necessary and should not be done :D

Also MSIs were reserving interrupts that IOAPIC was capable of
generating. Now IOAPIC and MSIs use different set of interrupts so
IOAPIC can use more interrupts if needed.
2024-09-27 15:31:31 +03:00

22 lines
236 B
C++

#pragma once
namespace Kernel
{
class Interruptable
{
public:
void set_irq(int irq);
virtual void handle_irq() = 0;
protected:
Interruptable() = default;
virtual ~Interruptable() {}
private:
int m_irq { -1 };
};
}