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