alloc: no need from slab >= PAGE_SiZE

This commit is contained in:
Mathieu Maret 2022-07-29 00:17:52 +02:00
parent db0fa8ba56
commit 4e6622d16e
2 changed files with 1 additions and 2 deletions

View File

@ -38,7 +38,6 @@ static struct {
{256, 2 * PAGE_SIZE, 0, 0},
{1024, 2 * PAGE_SIZE, 0, 0},
{2048, 3 * PAGE_SIZE, 0, 0},
{4096, 4 * PAGE_SIZE, 0, 0},
{0, 0, 0, 0}};
int allocSetup(size_t sizeOfArea, vaddr_t *areaAddr, vaddr_t *descAddr, vaddr_t *entryAddr)

View File

@ -23,7 +23,7 @@ void free(void *ptr);
struct slabEntry {
vaddr_t page;
void *freeEl;
size_t size;
size_t size;//of the allocated page
bool_t full;//TODO replace by freeEl == NULL
struct slabEntry *next;
struct slabEntry *prev;