mirror of
https://git.stationery.faith/corn/corn.git
synced 2024-11-22 04:02:17 +00:00
merge virtnodes on alloc
This commit is contained in:
parent
1d794d87f4
commit
179ddf64c1
1 changed files with 4 additions and 5 deletions
|
@ -173,11 +173,10 @@ void *virtaddr_alloc(int n_pages) {
|
||||||
new->is_alloc = true;
|
new->is_alloc = true;
|
||||||
new->is_used = true;
|
new->is_used = true;
|
||||||
new->next = node;
|
new->next = node;
|
||||||
return (void*)new->start;
|
void *mem = (void *) new->start;
|
||||||
//void *mem = (void *) new->start;
|
merge_back(new);
|
||||||
//merge_back(new);
|
merge_forward(new);
|
||||||
//merge_forward(new);
|
return mem;
|
||||||
//return mem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue