Luna/kernel/include/interrupts/Interrupts.h
apio f5deb1048a Kernel: Add functions to push and pop the interrupt state
This can be useful when you want to disable interrupts, but then only enable them back if they were previously enabled.
2022-10-12 12:58:56 +02:00

17 lines
307 B
C++

#pragma once
#include "interrupts/Context.h"
namespace Interrupts
{
void enable();
void disable();
bool is_in_handler();
void return_from_handler(Context* context);
bool are_enabled();
bool were_enabled();
void push_and_disable();
void push_and_enable();
void pop();
}