gem5
v20.0.0.3
|
#include "arch/mips/linux/process.hh"
#include "arch/mips/isa_traits.hh"
#include "arch/mips/linux/linux.hh"
#include "base/loader/object_file.hh"
#include "base/trace.hh"
#include "cpu/thread_context.hh"
#include "debug/SyscallVerbose.hh"
#include "kern/linux/linux.hh"
#include "sim/eventq.hh"
#include "sim/process.hh"
#include "sim/syscall_desc.hh"
#include "sim/syscall_emul.hh"
#include "sim/system.hh"
Go to the source code of this file.
Functions | |
static SyscallReturn | unameFunc (SyscallDesc *desc, ThreadContext *tc, Addr utsname) |
Target uname() handler. More... | |
static SyscallReturn | sys_getsysinfoFunc (SyscallDesc *desc, ThreadContext *tc, unsigned op, unsigned bufPtr, unsigned nbytes) |
Target sys_getsysyinfo() handler. More... | |
static SyscallReturn | sys_setsysinfoFunc (SyscallDesc *desc, ThreadContext *tc, unsigned op, Addr bufPtr, unsigned nbytes) |
Target sys_setsysinfo() handler. More... | |
static SyscallReturn | setThreadAreaFunc (SyscallDesc *desc, ThreadContext *tc, Addr addr) |
|
static |
Definition at line 148 of file process.cc.
References brkFunc(), chownFunc(), closeFunc(), exitFunc(), fchownFunc(), fcntl64Func(), fcntlFunc(), ftruncateFunc(), getcwdFunc(), getegidFunc(), geteuidFunc(), getgidFunc(), gethostnameFunc(), getpagesizeFunc(), getpidFunc(), getuidFunc(), ignoreFunc(), lseekFunc(), MipsISA::MISCREG_TP_VALUE, mkdirFunc(), munmapFunc(), pipePseudoFunc(), readlinkFunc(), ThreadContext::setMiscRegNoEffect(), sys_getsysinfoFunc(), sys_setsysinfoFunc(), MipsLinuxProcess::syscallDescs, truncateFunc(), umaskFunc(), unameFunc(), and unlinkFunc().
|
static |
Target sys_getsysyinfo() handler.
Even though this call is borrowed from Tru64, the subcases that get used appear to be different in practice from those used by Tru64 processes.
Definition at line 99 of file process.cc.
References BaseBufferArg::copyOut(), and ThreadContext::getVirtProxy().
Referenced by setThreadAreaFunc().
|
static |
Target sys_setsysinfo() handler.
Definition at line 123 of file process.cc.
References BaseBufferArg::copyIn(), DPRINTFR, ThreadContext::getVirtProxy(), and letoh().
Referenced by setThreadAreaFunc().
|
static |
Target uname() handler.
Definition at line 80 of file process.cc.
References BaseBufferArg::copyOut(), ThreadContext::getProcessPtr(), ThreadContext::getVirtProxy(), Linux::utsname::machine, name(), Linux::utsname::nodename, Linux::utsname::release, Linux::utsname::sysname, and Linux::utsname::version.
Referenced by setThreadAreaFunc().