forked from Bananymous/banan-os
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.
22 lines
236 B
C++
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 };
|
|
};
|
|
|
|
}
|