Rename & scheduler stuff
This commit is contained in:
parent
4e40a040dd
commit
0066af13e8
25 changed files with 63 additions and 88 deletions
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue