yet another sbrk() bug fix, and usertest
This commit is contained in:
parent
4de161f973
commit
e1a37303c8
2 changed files with 24 additions and 4 deletions
|
@ -270,7 +270,8 @@ uvmdealloc(pagetable_t pagetable, uint64 oldsz, uint64 newsz)
|
|||
return oldsz;
|
||||
|
||||
uint64 newup = PGROUNDUP(newsz);
|
||||
uvmunmap(pagetable, newup, oldsz - newup, 1);
|
||||
if(newup < PGROUNDUP(oldsz))
|
||||
uvmunmap(pagetable, newup, oldsz - newup, 1);
|
||||
|
||||
return newsz;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue