gem5  v20.1.0.0
Classes | Functions | Variables 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.


struct  UserDesc64


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)


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 

◆ BitUnion32()

BitUnion32 ( UserDescFlags  )

◆ EndBitUnion()

EndBitUnion ( UserDescFlags  )

Definition at line 149 of file

References X86ISA::limit.

Referenced by TEST_F().

◆ setThreadArea32Func()

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

◆ unameFunc()

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

Target uname() handler.

Definition at line 92 of file

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

Variable Documentation

◆ contents

Bitfield<2, 1> contents

Definition at line 144 of file

◆ limit_in_pages

Bitfield<4> limit_in_pages

Definition at line 146 of file

◆ read_exec_only

Bitfield<3> read_exec_only

Definition at line 145 of file

◆ seg_not_present

Bitfield<5> seg_not_present

Definition at line 147 of file

◆ syscallDescs32

Definition at line 586 of file

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

◆ syscallDescs64

Definition at line 247 of file

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

◆ useable

Bitfield<6> useable

Definition at line 148 of file

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