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:
commit
c0e53b6d4c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue