diff --git a/core/alloc.c b/core/alloc.c index 69db5ba..7feb929 100644 --- a/core/alloc.c +++ b/core/alloc.c @@ -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) diff --git a/core/alloc.h b/core/alloc.h index df6171f..d64b528 100644 --- a/core/alloc.h +++ b/core/alloc.h @@ -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;