System: Forgot to qrefresh with my last change.
This commit is contained in:
parent
acebd9bf91
commit
cbcdcd53a7
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ System::allocPhysPages(int npages)
|
|||
{
|
||||
Addr return_addr = pagePtr << LogVMPageSize;
|
||||
pagePtr += npages;
|
||||
if (return_addr + npages - 1 >= physmem->size())
|
||||
if (pagePtr > physmem->size())
|
||||
fatal("Out of memory, please increase size of physical memory.");
|
||||
return return_addr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue