Merge ktlim@zizzer:/bk/newmem

into  zamp.eecs.umich.edu:/z/ktlim2/clean/o3-merge/newmem

--HG--
extra : convert_revision : 0309a453c0d65579cfa022888d1a2ab4f0171a9f
This commit is contained in:
Kevin Lim 2006-10-07 23:35:32 -04:00
commit c0e53b6d4c

View file

@ -219,6 +219,8 @@ System::new_page()
{ {
Addr return_addr = page_ptr << LogVMPageSize; Addr return_addr = page_ptr << LogVMPageSize;
++page_ptr; ++page_ptr;
if (return_addr >= physmem->size())
fatal("Out of memory, please increase size of physical memory.");
return return_addr; return return_addr;
} }
#endif #endif