gem5  v20.1.0.0
Classes | Functions | Variables
process.cc File Reference
#include "arch/x86/linux/process.hh"
#include <sys/syscall.h>
#include "arch/x86/isa_traits.hh"
#include "arch/x86/linux/linux.hh"
#include "arch/x86/registers.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"

Go to the source code of this file.

Classes

struct  UserDesc64
 

Functions

static SyscallReturn unameFunc (SyscallDesc *desc, ThreadContext *tc, VPtr< Linux::utsname > name)
 Target uname() handler. More...
 
static SyscallReturn archPrctlFunc (SyscallDesc *desc, ThreadContext *tc, int code, uint64_t addr)
 
 BitUnion32 (UserDescFlags) Bitfield< 0 > seg_32bit
 
 EndBitUnion (UserDescFlags) struct UserDesc32
 
static SyscallReturn setThreadArea32Func (SyscallDesc *desc, ThreadContext *tc, VPtr< UserDesc32 > userDesc)
 

Variables

Bitfield< 2, 1 > contents
 
Bitfield< 3 > read_exec_only
 
Bitfield< 4 > limit_in_pages
 
Bitfield< 5 > seg_not_present
 
Bitfield< 6 > useable
 
static SyscallDescTable< X86_64LinuxProcess::SyscallABIsyscallDescs64
 
static SyscallDescTable< I386LinuxProcess::SyscallABIsyscallDescs32
 

Function Documentation

◆ archPrctlFunc()

static SyscallReturn archPrctlFunc ( SyscallDesc desc,
ThreadContext tc,
int  code,
uint64_t  addr 
)
static

◆ BitUnion32()

BitUnion32 ( UserDescFlags  )

◆ EndBitUnion()

EndBitUnion ( UserDescFlags  )

Definition at line 149 of file process.cc.

References X86ISA::limit.

Referenced by TEST_F().

◆ setThreadArea32Func()

static SyscallReturn setThreadArea32Func ( SyscallDesc desc,
ThreadContext tc,
VPtr< UserDesc32 >  userDesc 
)
static

◆ unameFunc()

static SyscallReturn unameFunc ( SyscallDesc desc,
ThreadContext tc,
VPtr< Linux::utsname name 
)
static

Target uname() handler.

Definition at line 92 of file process.cc.

References ThreadContext::getProcessPtr(), and name().

Variable Documentation

◆ contents

Bitfield<2, 1> contents

Definition at line 144 of file process.cc.

◆ limit_in_pages

Bitfield<4> limit_in_pages

Definition at line 146 of file process.cc.

◆ read_exec_only

Bitfield<3> read_exec_only

Definition at line 145 of file process.cc.

◆ seg_not_present

Bitfield<5> seg_not_present

Definition at line 147 of file process.cc.

◆ syscallDescs32

Definition at line 586 of file process.cc.

Referenced by X86ISA::I386LinuxProcess::syscall().

◆ syscallDescs64

Definition at line 247 of file process.cc.

Referenced by X86ISA::X86_64LinuxProcess::syscall().

◆ useable

Bitfield<6> useable

Definition at line 148 of file process.cc.


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17