Implement Mutexes and supporting syscalls, cleanup/optimize scheduler
All checks were successful
Build documentation / build-and-deploy (push) Successful in 39s

This commit is contained in:
2026-01-10 00:12:42 +01:00
parent 6a474c21a0
commit 41a458b925
17 changed files with 276 additions and 73 deletions

View File

@@ -7,7 +7,7 @@
#include <libk/rbtree.h>
#include <libk/std.h>
#include <proc/proc.h>
#include <sync/rw_spin_lock.h>
#include <sync/spin_lock.h>
#define CPUS_MAX 32
@@ -30,7 +30,7 @@ struct cpu {
atomic_int nesting;
} irq_ctx;
rw_spin_lock_t lock;
spin_lock_t lock;
struct rb_node_link* proc_run_q;
struct proc* proc_current;