Kernel: add NEVER_INLINE and make Interruptable not constructable
This commit is contained in:
parent
5630f64175
commit
cf4f5f64a5
|
@ -1,3 +1,4 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define ALWAYS_INLINE inline __attribute__((always_inline))
|
#define ALWAYS_INLINE inline __attribute__((always_inline))
|
||||||
|
#define NEVER_INLINE __attribute__((noinline))
|
||||||
|
|
|
@ -11,14 +11,16 @@ namespace Kernel
|
||||||
class Interruptable
|
class Interruptable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Interruptable() = default;
|
|
||||||
|
|
||||||
void set_irq(int irq);
|
void set_irq(int irq);
|
||||||
void enable_interrupt();
|
void enable_interrupt();
|
||||||
void disable_interrupt();
|
void disable_interrupt();
|
||||||
|
|
||||||
virtual void handle_irq() = 0;
|
virtual void handle_irq() = 0;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
Interruptable() = default;
|
||||||
|
~Interruptable() {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_irq { -1 };
|
int m_irq { -1 };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue