did some restructuring, got multitasking almost working

This commit is contained in:
2026-06-26 20:05:01 -05:00
parent 57d7d34c6d
commit 43bc0df81a
35 changed files with 481 additions and 307 deletions

13
kernel/lib/tasks.h Normal file
View File

@@ -0,0 +1,13 @@
#ifndef KTASKS_H
#define KTASKS_H
#include <stdint.h>
typedef struct {
volatile uint32_t locked;
} spinlock_t;
void spin_lock(spinlock_t *lock);
void spin_unlock(spinlock_t *lock);
#endif