Rename & scheduler stuff

This commit is contained in:
ssimnb 2026-01-24 08:15:08 +01:00
parent 4e40a040dd
commit 0066af13e8
25 changed files with 63 additions and 88 deletions

View file

@ -7,7 +7,7 @@
#include "page.h"
#include "slab.h"
#include <kprint.h>
#include <SFB25.h>
#include <neobbo.h>
#include <lock.h>
struct ma_kcache *caches = NULL;
@ -414,6 +414,8 @@ kstatus ma_cache_dealloc(void *object){
return KERNEL_STATUS_ERROR;
}
acquire_spinlock(&slab->lock);
struct ma_bufctl *buf = addr_to_bufctl(object);
if(buf == NULL){
@ -432,6 +434,8 @@ kstatus ma_cache_dealloc(void *object){
_ma_move_slab(slab, FREE);
}
free_spinlock(&slab->lock);
return KERNEL_STATUS_SUCCESS;
}