mirror of
https://git.stationery.faith/corn/corn.git
synced 2024-11-21 23:22:18 +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_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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue