Sketch Timer and implement Interrupt support

This commit is contained in:
Björn Gaier
2023-01-06 15:18:35 +01:00
parent 6608d92934
commit ec6b93942c
6 changed files with 102 additions and 11 deletions

View File

@@ -40,10 +40,13 @@ enum __syscall_PriorityChain {
static __constexpr const uint32_t SkipHandler = 0;
static __constexpr const uint32_t ExecuteHandler = 1;
typedef uint32_t (*InterruptVerifier)();
typedef uint32_t (*InterruptHandler)(uint32_t);
struct __no_align __syscall_InterruptElement {
struct __syscall_InterruptElement *next;
void (*handler)(uint32_t);
uint32_t (*verifier)();
struct __syscall_InterruptElement* next;
InterruptHandler handler_function;
InterruptVerifier verifier_function;
uint32_t notUsed;
};