Use RW spin locks
All checks were successful
Build documentation / build-and-deploy (push) Successful in 39s

This commit is contained in:
2026-01-09 19:53:08 +01:00
parent a5283283f6
commit 6a474c21a0
9 changed files with 198 additions and 39 deletions

View File

@@ -8,7 +8,7 @@
#include <libk/string.h>
#include <limine/requests.h>
#include <mm/liballoc.h>
#include <sync/spin_lock.h>
#include <sync/rw_spin_lock.h>
#include <sys/debug.h>
#include <sys/smp.h>
#include <sys/syscall.h>
@@ -27,7 +27,7 @@ struct cpu* cpu_make (void) {
struct cpu* cpu = &cpus[id];
memset (cpu, 0, sizeof (*cpu));
cpu->lock = SPIN_LOCK_INIT;
cpu->lock = RW_SPIN_LOCK_INIT;
cpu->id = id;
cpu->self = cpu;