mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: spinlocks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user