gem5  v19.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions | Variables
process.cc File Reference
#include "arch/arm/linux/process.hh"
#include <sys/syscall.h>
#include "arch/arm/isa_traits.hh"
#include "arch/arm/linux/linux.hh"
#include "base/loader/object_file.hh"
#include "base/trace.hh"
#include "cpu/thread_context.hh"
#include "kern/linux/linux.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 unameFunc32 (SyscallDesc *desc, int callnum, ThreadContext *tc)
 Target uname() handler. More...
 
static SyscallReturn unameFunc64 (SyscallDesc *desc, int callnum, ThreadContext *tc)
 Target uname() handler. More...
 
static SyscallReturn setTLSFunc32 (SyscallDesc *desc, int callnum, ThreadContext *tc)
 Target set_tls() handler. More...
 
static SyscallReturn setTLSFunc64 (SyscallDesc *desc, int callnum, ThreadContext *tc)
 

Variables

static SyscallDescABI< DefaultSyscallABIsyscallDescs32 []
 
static SyscallDescABI< DefaultSyscallABIsyscallDescs64 []
 
static SyscallDescABI< DefaultSyscallABIprivSyscallDescs32 []
 
static SyscallDescABI< DefaultSyscallABIprivSyscallDescs64 []
 

Function Documentation

◆ setTLSFunc32()

static SyscallReturn setTLSFunc32 ( SyscallDesc desc,
int  callnum,
ThreadContext tc 
)
static

◆ setTLSFunc64()

static SyscallReturn setTLSFunc64 ( SyscallDesc desc,
int  callnum,
ThreadContext tc 
)
static

◆ unameFunc32()

static SyscallReturn unameFunc32 ( SyscallDesc desc,
int  callnum,
ThreadContext tc 
)
static

Target uname() handler.

Definition at line 108 of file process.cc.

References ThreadContext::getProcessPtr(), ThreadContext::getVirtProxy(), MipsISA::index, and name().

◆ unameFunc64()

static SyscallReturn unameFunc64 ( SyscallDesc desc,
int  callnum,
ThreadContext tc 
)
static

Target uname() handler.

Definition at line 126 of file process.cc.

References ThreadContext::getProcessPtr(), ThreadContext::getVirtProxy(), MipsISA::index, and name().

Variable Documentation

◆ privSyscallDescs32

SyscallDescABI<DefaultSyscallABI> privSyscallDescs32[]
static
Initial value:
= {
{ "breakpoint" },
{ "cacheflush" },
{ "usr26" },
{ "usr32" },
{ "set_tls", setTLSFunc32 }
}
static SyscallReturn setTLSFunc32(SyscallDesc *desc, int callnum, ThreadContext *tc)
Target set_tls() handler.
Definition: process.cc:144

Definition at line 1635 of file process.cc.

Referenced by ArmLinuxProcess32::ArmLinuxProcess32().

◆ privSyscallDescs64

SyscallDescABI<DefaultSyscallABI> privSyscallDescs64[]
static
Initial value:
= {
{ "unallocated" },
{ "cacheflush" },
{ "unallocated" },
{ "unallocated" },
{ "set_tls", setTLSFunc64 }
}
static SyscallReturn setTLSFunc64(SyscallDesc *desc, int callnum, ThreadContext *tc)
Definition: process.cc:157

Definition at line 1644 of file process.cc.

Referenced by ArmLinuxProcess64::ArmLinuxProcess64().

◆ syscallDescs32

SyscallDescABI<DefaultSyscallABI> syscallDescs32[]
static

Definition at line 167 of file process.cc.

Referenced by ArmLinuxProcess32::ArmLinuxProcess32().

◆ syscallDescs64

SyscallDescABI<DefaultSyscallABI> syscallDescs64[]
static

Definition at line 544 of file process.cc.

Referenced by ArmLinuxProcess64::ArmLinuxProcess64().


Generated on Fri Feb 28 2020 16:27:06 for gem5 by doxygen 1.8.13