kernel: spinlocks

This commit is contained in:
Matheus
2023-04-23 17:12:05 -03:00
parent f16091656a
commit 0394165361
8 changed files with 59 additions and 30 deletions
+2
View File
@@ -3,6 +3,7 @@
#include <time.h>
#include <arch/context.h>
#include <spinlock.h>
typedef struct timerentry_t {
struct timerentry_t *next;
@@ -12,6 +13,7 @@ typedef struct timerentry_t {
} timerentry_t;
typedef struct {
spinlock_t lock;
time_t ticksperus;
time_t tickcurrent;
void (*arm)(time_t);