process.cc (2935:d1223a6c9156) | process.cc (3114:7a4771b9b720) |
---|---|
1 2/* 3 * Copyright (c) 2003-2004 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 29 unchanged lines hidden (view full) --- 38#include "cpu/thread_context.hh" 39#include "sim/system.hh" 40 41using namespace std; 42using namespace MipsISA; 43 44MipsLiveProcess::MipsLiveProcess(const std::string &nm, ObjectFile *objFile, 45 System *_system, int stdin_fd, int stdout_fd, int stderr_fd, | 1 2/* 3 * Copyright (c) 2003-2004 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 29 unchanged lines hidden (view full) --- 38#include "cpu/thread_context.hh" 39#include "sim/system.hh" 40 41using namespace std; 42using namespace MipsISA; 43 44MipsLiveProcess::MipsLiveProcess(const std::string &nm, ObjectFile *objFile, 45 System *_system, int stdin_fd, int stdout_fd, int stderr_fd, |
46 std::vector<std::string> &argv, std::vector<std::string> &envp) | 46 std::vector<std::string> &argv, std::vector<std::string> &envp, 47 uint64_t _uid, uint64_t _euid, uint64_t _gid, uint64_t _egid, 48 uint64_t _pid, uint64_t _ppid) |
47 : LiveProcess(nm, objFile, _system, stdin_fd, stdout_fd, stderr_fd, | 49 : LiveProcess(nm, objFile, _system, stdin_fd, stdout_fd, stderr_fd, |
48 argv, envp) | 50 argv, envp, _uid, _euid, _gid, _egid, _pid, _ppid) |
49{ 50 // Set up stack. On MIPS, stack starts at the top of kuseg 51 // user address space. MIPS stack grows down from here 52 stack_base = 0x7FFFFFFF; 53 54 // Set pointer for next thread stack. Reserve 8M for main stack. 55 next_thread_stack_base = stack_base - (8 * 1024 * 1024); 56 --- 13 unchanged lines hidden --- | 51{ 52 // Set up stack. On MIPS, stack starts at the top of kuseg 53 // user address space. MIPS stack grows down from here 54 stack_base = 0x7FFFFFFF; 55 56 // Set pointer for next thread stack. Reserve 8M for main stack. 57 next_thread_stack_base = stack_base - (8 * 1024 * 1024); 58 --- 13 unchanged lines hidden --- |