kernel threads

kernel threads and preemptive multitasking
This commit is contained in:
Matheus
2022-08-13 14:00:26 -03:00
parent ac5339453b
commit e7f4245c6d
14 changed files with 274 additions and 44 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
#ifndef _TIMER_H_INCLUDE
#define _TIMER_H_INCLUDE
#include <stdbool.h>
#include <stddef.h>
#include <arch/regs.h>
@@ -14,7 +15,7 @@ typedef struct _timer_req{
} timer_req;
void timer_init();
void timer_add(timer_req* req, size_t us);
void timer_add(timer_req* req, size_t us, bool start);
void timer_resume();
void timer_stop();
void timer_irq(arch_regs* ctx);