system.cc (8986:4cc63185478b) | system.cc (9007:7100059f7bfd) |
---|---|
1/* 2 * Copyright (c) 2011-2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 284 unchanged lines hidden (view full) --- 293 remoteGDB[context_id]->replaceThreadContext(tc); 294} 295 296Addr 297System::allocPhysPages(int npages) 298{ 299 Addr return_addr = pagePtr << LogVMPageSize; 300 pagePtr += npages; | 1/* 2 * Copyright (c) 2011-2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 284 unchanged lines hidden (view full) --- 293 remoteGDB[context_id]->replaceThreadContext(tc); 294} 295 296Addr 297System::allocPhysPages(int npages) 298{ 299 Addr return_addr = pagePtr << LogVMPageSize; 300 pagePtr += npages; |
301 if (pagePtr > physmem.totalSize()) | 301 if ((pagePtr << LogVMPageSize) > physmem.totalSize()) |
302 fatal("Out of memory, please increase size of physical memory."); 303 return return_addr; 304} 305 306Addr 307System::memSize() const 308{ 309 return physmem.totalSize(); --- 133 unchanged lines hidden --- | 302 fatal("Out of memory, please increase size of physical memory."); 303 return return_addr; 304} 305 306Addr 307System::memSize() const 308{ 309 return physmem.totalSize(); --- 133 unchanged lines hidden --- |