System: Forgot to qrefresh with my last change.

This commit is contained in:
Gabe Black 2012-02-03 09:48:10 -08:00
parent acebd9bf91
commit cbcdcd53a7

View file

@ -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;
}