process.cc (2972:f84c6c5309ce) process.cc (3114:7a4771b9b720)
1/*
2 * Copyright (c) 2003-2004 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;

--- 28 unchanged lines hidden (view full) ---

37#include "sim/system.hh"
38
39
40using namespace AlphaISA;
41using namespace std;
42
43AlphaLiveProcess::AlphaLiveProcess(const std::string &nm, ObjectFile *objFile,
44 System *_system, int stdin_fd, int stdout_fd, int stderr_fd,
1/*
2 * Copyright (c) 2003-2004 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;

--- 28 unchanged lines hidden (view full) ---

37#include "sim/system.hh"
38
39
40using namespace AlphaISA;
41using namespace std;
42
43AlphaLiveProcess::AlphaLiveProcess(const std::string &nm, ObjectFile *objFile,
44 System *_system, int stdin_fd, int stdout_fd, int stderr_fd,
45 std::vector<std::string> &argv, std::vector<std::string> &envp)
45 std::vector<std::string> &argv, std::vector<std::string> &envp,
46 uint64_t _uid, uint64_t _euid, uint64_t _gid, uint64_t _egid,
47 uint64_t _pid, uint64_t _ppid)
46 : LiveProcess(nm, objFile, _system, stdin_fd, stdout_fd, stderr_fd,
48 : LiveProcess(nm, objFile, _system, stdin_fd, stdout_fd, stderr_fd,
47 argv, envp)
49 argv, envp, _uid, _euid, _gid, _egid, _pid, _ppid)
48{
49 brk_point = objFile->dataBase() + objFile->dataSize() + objFile->bssSize();
50 brk_point = roundUp(brk_point, VMPageSize);
51
52 // Set up stack. On Alpha, stack goes below text section. This
53 // code should get moved to some architecture-specific spot.
54 stack_base = objFile->textBase() - (409600+4096);
55

--- 18 unchanged lines hidden ---
50{
51 brk_point = objFile->dataBase() + objFile->dataSize() + objFile->bssSize();
52 brk_point = roundUp(brk_point, VMPageSize);
53
54 // Set up stack. On Alpha, stack goes below text section. This
55 // code should get moved to some architecture-specific spot.
56 stack_base = objFile->textBase() - (409600+4096);
57

--- 18 unchanged lines hidden ---