apio
f5deb1048a
This can be useful when you want to disable interrupts, but then only enable them back if they were previously enabled.
17 lines
307 B
C++
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();
|
|
} |