Kernel: Move interrupt related functions to InterruptController
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define DISABLE_INTERRUPTS() asm volatile("cli")
|
||||
#define ENABLE_INTERRUPTS() asm volatile("sti")
|
||||
|
||||
class InterruptController
|
||||
{
|
||||
public:
|
||||
@@ -13,4 +16,8 @@ public:
|
||||
|
||||
static void initialize(bool force_pic);
|
||||
static InterruptController& get();
|
||||
};
|
||||
};
|
||||
|
||||
uintptr_t disable_interrupts_and_get_flags();
|
||||
void restore_flags(uintptr_t);
|
||||
bool interrupts_enabled();
|
||||
Reference in New Issue
Block a user