gem5  v20.1.0.0
Functions | Variables
process.cc File Reference
#include "arch/arm/freebsd/process.hh"
#include <sys/mman.h>
#include <sys/param.h>
#include <sys/syscall.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <utime.h>
#include "arch/arm/freebsd/freebsd.hh"
#include "arch/arm/isa_traits.hh"
#include "base/loader/object_file.hh"
#include "base/trace.hh"
#include "cpu/thread_context.hh"
#include "kern/freebsd/freebsd.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 issetugidFunc (SyscallDesc *desc, ThreadContext *tc)
 
static SyscallReturn sysctlFunc (SyscallDesc *desc, ThreadContext *tc, Addr namep, size_t nameLen, Addr oldp, Addr oldlenp, Addr newp, size_t newlen)
 

Variables

static SyscallDescTable< ArmFreebsdProcess32::SyscallABIsyscallDescs32 ({})
 
static SyscallDescTable< ArmFreebsdProcess64::SyscallABIsyscallDescs64
 

Function Documentation

◆ issetugidFunc()

static SyscallReturn issetugidFunc ( SyscallDesc desc,
ThreadContext tc 
)
static

Definition at line 90 of file process.cc.

◆ sysctlFunc()

static SyscallReturn sysctlFunc ( SyscallDesc desc,
ThreadContext tc,
Addr  namep,
size_t  nameLen,
Addr  oldp,
Addr  oldlenp,
Addr  newp,
size_t  newlen 
)
static

Variable Documentation

◆ syscallDescs32

◆ syscallDescs64

Initial value:
= {
{ 1, "exit", exitFunc },
{ 3, "read", readFunc<ArmFreebsd64> },
{ 4, "write", writeFunc<ArmFreebsd64> },
{ 17, "obreak", brkFunc },
{ 54, "ioctl", ioctlFunc<ArmFreebsd64> },
{ 58, "readlink", readlinkFunc },
{ 117, "getrusage", getrusageFunc<ArmFreebsd64> },
{ 189, "fstat", fstatFunc<ArmFreebsd64> },
{ 202, "sysctl", sysctlFunc },
{ 253, "issetugid", issetugidFunc },
{ 477, "mmap", mmapFunc<ArmFreebsd64> }
}

Definition at line 135 of file process.cc.

Referenced by ArmFreebsdProcess64::syscall().

exitFunc
SyscallReturn exitFunc(SyscallDesc *desc, ThreadContext *tc, int status)
Target exit() handler: terminate current context.
Definition: syscall_emul.cc:230
brkFunc
SyscallReturn brkFunc(SyscallDesc *desc, ThreadContext *tc, Addr new_brk)
Target brk() handler: set brk address.
Definition: syscall_emul.cc:249
readlinkFunc
SyscallReturn readlinkFunc(SyscallDesc *desc, ThreadContext *tc, Addr pathname, Addr buf_ptr, size_t bufsiz)
Target readlink() handler.
Definition: syscall_emul.cc:394
sysctlFunc
static SyscallReturn sysctlFunc(SyscallDesc *desc, ThreadContext *tc, Addr namep, size_t nameLen, Addr oldp, Addr oldlenp, Addr newp, size_t newlen)
Definition: process.cc:97
issetugidFunc
static SyscallReturn issetugidFunc(SyscallDesc *desc, ThreadContext *tc)
Definition: process.cc:90

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