process.cc (12432:2480d8b432f5) | process.cc (12441:ece14e2e8c0a) |
---|---|
1/* 2 * Copyright (c) 2004-2005 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; --- 39 unchanged lines hidden (view full) --- 48 49using namespace std; 50using namespace MipsISA; 51 52MipsProcess::MipsProcess(ProcessParams *params, ObjectFile *objFile) 53 : Process(params, new FuncPageTable(params->name, params->pid, PageBytes), 54 objFile) 55{ | 1/* 2 * Copyright (c) 2004-2005 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; --- 39 unchanged lines hidden (view full) --- 48 49using namespace std; 50using namespace MipsISA; 51 52MipsProcess::MipsProcess(ProcessParams *params, ObjectFile *objFile) 53 : Process(params, new FuncPageTable(params->name, params->pid, PageBytes), 54 objFile) 55{ |
56 fatal_if(!params->useArchPT, "Arch page tables not implemented."); | 56 fatal_if(params->useArchPT, "Arch page tables not implemented."); |
57 // Set up stack. On MIPS, stack starts at the top of kuseg 58 // user address space. MIPS stack grows down from here 59 Addr stack_base = 0x7FFFFFFF; 60 61 Addr max_stack_size = 8 * 1024 * 1024; 62 63 // Set pointer for next thread stack. Reserve 8M for main stack. 64 Addr next_thread_stack_base = stack_base - max_stack_size; --- 165 unchanged lines hidden --- | 57 // Set up stack. On MIPS, stack starts at the top of kuseg 58 // user address space. MIPS stack grows down from here 59 Addr stack_base = 0x7FFFFFFF; 60 61 Addr max_stack_size = 8 * 1024 * 1024; 62 63 // Set pointer for next thread stack. Reserve 8M for main stack. 64 Addr next_thread_stack_base = stack_base - max_stack_size; --- 165 unchanged lines hidden --- |