2022-09-05 14:13:51 +00:00
|
|
|
#pragma once
|
2022-09-20 17:56:43 +00:00
|
|
|
#include "interrupts/Context.h"
|
2022-09-05 14:13:51 +00:00
|
|
|
|
|
|
|
namespace Interrupts
|
|
|
|
{
|
|
|
|
void enable();
|
|
|
|
void disable();
|
2022-09-20 15:16:07 +00:00
|
|
|
|
|
|
|
bool is_in_handler();
|
2022-09-20 17:56:43 +00:00
|
|
|
void return_from_handler(Context* context);
|
2022-10-12 10:56:55 +00:00
|
|
|
|
|
|
|
bool are_enabled();
|
2022-10-12 10:58:56 +00:00
|
|
|
bool were_enabled();
|
|
|
|
void push_and_disable();
|
|
|
|
void push_and_enable();
|
|
|
|
void pop();
|
2022-09-05 14:13:51 +00:00
|
|
|
}
|