Rework x86_64 paging and vmm

This commit is contained in:
2025-08-30 00:31:20 +02:00
parent 8cf1bde879
commit 7a52f2f051
28 changed files with 262 additions and 291 deletions

View File

@ -13,11 +13,12 @@ void spinlock_acquire(SpinLock *sl) {
unlocked = false;
SPINLOCK_HINT();
}
hal_intr_disable();
}
void spinlock_release(SpinLock *sl) {
atomic_store(&sl->lock, false);
hal_intr_enable();
bool locked = true;
if (atomic_compare_exchange_strong(&sl->lock, &locked, false)) {
atomic_store(&sl->lock, false);
}
}