system.cc (5718:323cfbfec1a4) | system.cc (5795:72ce7502dc71) |
---|---|
1/* 2 * Copyright (c) 2003-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 230 unchanged lines hidden (view full) --- 239System::new_page() 240{ 241 Addr return_addr = page_ptr << LogVMPageSize; 242 ++page_ptr; 243 if (return_addr >= physmem->size()) 244 fatal("Out of memory, please increase size of physical memory."); 245 return return_addr; 246} | 1/* 2 * Copyright (c) 2003-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 230 unchanged lines hidden (view full) --- 239System::new_page() 240{ 241 Addr return_addr = page_ptr << LogVMPageSize; 242 ++page_ptr; 243 if (return_addr >= physmem->size()) 244 fatal("Out of memory, please increase size of physical memory."); 245 return return_addr; 246} |
247 248Addr 249System::memSize() 250{ 251 return physmem->size(); 252} 253 254Addr 255System::freeMemSize() 256{ 257 return physmem->size() - (page_ptr << LogVMPageSize); 258} 259 |
|
247#endif 248 249void 250System::serialize(ostream &os) 251{ 252#if FULL_SYSTEM 253 kernelSymtab->serialize("kernel_symtab", os); 254#else // !FULL_SYSTEM --- 44 unchanged lines hidden --- | 260#endif 261 262void 263System::serialize(ostream &os) 264{ 265#if FULL_SYSTEM 266 kernelSymtab->serialize("kernel_symtab", os); 267#else // !FULL_SYSTEM --- 44 unchanged lines hidden --- |