alloc: no need from slab >= PAGE_SiZE

master
Mathieu Maret 2 months ago
parent db0fa8ba56
commit 4e6622d16e
  1. 1
      core/alloc.c
  2. 2
      core/alloc.h

@ -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)

@ -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;

Loading…
Cancel
Save