merge virtnodes on alloc

This commit is contained in:
Freya Murphy 2024-02-02 10:11:55 -05:00
parent 1d794d87f4
commit 179ddf64c1
Signed by: freya
GPG key ID: 744AB800E383AE52

View file

@ -173,11 +173,10 @@ void *virtaddr_alloc(int n_pages) {
new->is_alloc = true;
new->is_used = true;
new->next = node;
return (void*)new->start;
//void *mem = (void *) new->start;
//merge_back(new);
//merge_forward(new);
//return mem;
void *mem = (void *) new->start;
merge_back(new);
merge_forward(new);
return mem;
}
}