alloc: no need from slab >= PAGE_SiZE
This commit is contained in:
parent
db0fa8ba56
commit
4e6622d16e
@ -38,7 +38,6 @@ static struct {
|
|||||||
{256, 2 * PAGE_SIZE, 0, 0},
|
{256, 2 * PAGE_SIZE, 0, 0},
|
||||||
{1024, 2 * PAGE_SIZE, 0, 0},
|
{1024, 2 * PAGE_SIZE, 0, 0},
|
||||||
{2048, 3 * PAGE_SIZE, 0, 0},
|
{2048, 3 * PAGE_SIZE, 0, 0},
|
||||||
{4096, 4 * PAGE_SIZE, 0, 0},
|
|
||||||
{0, 0, 0, 0}};
|
{0, 0, 0, 0}};
|
||||||
|
|
||||||
int allocSetup(size_t sizeOfArea, vaddr_t *areaAddr, vaddr_t *descAddr, vaddr_t *entryAddr)
|
int allocSetup(size_t sizeOfArea, vaddr_t *areaAddr, vaddr_t *descAddr, vaddr_t *entryAddr)
|
||||||
|
@ -23,7 +23,7 @@ void free(void *ptr);
|
|||||||
struct slabEntry {
|
struct slabEntry {
|
||||||
vaddr_t page;
|
vaddr_t page;
|
||||||
void *freeEl;
|
void *freeEl;
|
||||||
size_t size;
|
size_t size;//of the allocated page
|
||||||
bool_t full;//TODO replace by freeEl == NULL
|
bool_t full;//TODO replace by freeEl == NULL
|
||||||
struct slabEntry *next;
|
struct slabEntry *next;
|
||||||
struct slabEntry *prev;
|
struct slabEntry *prev;
|
||||||
|
Loading…
Reference in New Issue
Block a user