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