X86: Add a class to support 32 bit x86 linux process.
This commit is contained in:
parent
bebbc9dc89
commit
932f6440a1
4 changed files with 368 additions and 28 deletions
|
@ -72,26 +72,17 @@ using namespace X86ISA;
|
|||
SyscallDesc*
|
||||
X86LinuxProcess::getDesc(int callnum)
|
||||
{
|
||||
if (callnum < 0 || callnum > Num_Syscall_Descs)
|
||||
if (callnum < 0 || callnum >= Num_Syscall_Descs)
|
||||
return NULL;
|
||||
return &syscallDescs[callnum];
|
||||
}
|
||||
|
||||
X86LinuxProcess::X86LinuxProcess(LiveProcessParams * params,
|
||||
X86_64LinuxProcess::X86_64LinuxProcess(LiveProcessParams * params,
|
||||
ObjectFile *objFile)
|
||||
: X86LiveProcess(params, objFile),
|
||||
Num_Syscall_Descs(273)
|
||||
: X86LinuxProcess(params, objFile, syscallDescs, 273)
|
||||
{}
|
||||
|
||||
void X86LinuxProcess::handleTrap(int trapNum, ThreadContext *tc)
|
||||
{
|
||||
switch(trapNum)
|
||||
{
|
||||
//This implementation is from SPARC
|
||||
case 0x10: //Linux 32 bit syscall trap
|
||||
tc->syscall(tc->readIntReg(1));
|
||||
break;
|
||||
default:
|
||||
X86LiveProcess::handleTrap(trapNum, tc);
|
||||
}
|
||||
}
|
||||
I386LinuxProcess::I386LinuxProcess(LiveProcessParams * params,
|
||||
ObjectFile *objFile)
|
||||
: X86LinuxProcess(params, objFile, syscallDescs, 324)
|
||||
{}
|
||||
|
|
|
@ -68,18 +68,40 @@ namespace X86ISA {
|
|||
/// A process with emulated x86/Linux syscalls.
|
||||
class X86LinuxProcess : public X86LiveProcess
|
||||
{
|
||||
public:
|
||||
/// Constructor.
|
||||
X86LinuxProcess(LiveProcessParams * params, ObjectFile *objFile);
|
||||
|
||||
/// Array of syscall descriptors, indexed by call number.
|
||||
static SyscallDesc syscallDescs[];
|
||||
|
||||
SyscallDesc* getDesc(int callnum);
|
||||
protected:
|
||||
SyscallDesc *syscallDescs;
|
||||
|
||||
const int Num_Syscall_Descs;
|
||||
|
||||
void handleTrap(int trapNum, ThreadContext *tc);
|
||||
/// Constructor.
|
||||
X86LinuxProcess(LiveProcessParams * params, ObjectFile *objFile,
|
||||
SyscallDesc *_syscallDescs, int numSyscallDescs) :
|
||||
X86LiveProcess(params, objFile), syscallDescs(_syscallDescs),
|
||||
Num_Syscall_Descs(numSyscallDescs)
|
||||
{}
|
||||
|
||||
public:
|
||||
SyscallDesc* getDesc(int callnum);
|
||||
};
|
||||
|
||||
class X86_64LinuxProcess : public X86LinuxProcess
|
||||
{
|
||||
public:
|
||||
/// Constructor.
|
||||
X86_64LinuxProcess(LiveProcessParams * params, ObjectFile *objFile);
|
||||
|
||||
/// Array of syscall descriptors, indexed by call number.
|
||||
static SyscallDesc syscallDescs[];
|
||||
};
|
||||
|
||||
class I386LinuxProcess : public X86LinuxProcess
|
||||
{
|
||||
public:
|
||||
/// Constructor.
|
||||
I386LinuxProcess(LiveProcessParams * params, ObjectFile *objFile);
|
||||
|
||||
/// Array of syscall descriptors, indexed by call number.
|
||||
static SyscallDesc syscallDescs[];
|
||||
};
|
||||
|
||||
} // namespace X86ISA
|
||||
|
|
|
@ -122,7 +122,7 @@ archPrctlFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
|
|||
}
|
||||
}
|
||||
|
||||
SyscallDesc X86LinuxProcess::syscallDescs[] = {
|
||||
SyscallDesc X86_64LinuxProcess::syscallDescs[] = {
|
||||
/* 0 */ SyscallDesc("read", readFunc),
|
||||
/* 1 */ SyscallDesc("write", writeFunc),
|
||||
/* 2 */ SyscallDesc("open", openFunc<X86Linux64>),
|
||||
|
@ -397,3 +397,330 @@ SyscallDesc X86LinuxProcess::syscallDescs[] = {
|
|||
/* 271 */ SyscallDesc("ppoll", unimplementedFunc),
|
||||
/* 272 */ SyscallDesc("unshare", unimplementedFunc)
|
||||
};
|
||||
|
||||
SyscallDesc I386LinuxProcess::syscallDescs[] = {
|
||||
/* 0 */ SyscallDesc("restart_syscall", unimplementedFunc),
|
||||
/* 1 */ SyscallDesc("exit", unimplementedFunc),
|
||||
/* 2 */ SyscallDesc("fork", unimplementedFunc),
|
||||
/* 3 */ SyscallDesc("read", unimplementedFunc),
|
||||
/* 4 */ SyscallDesc("write", unimplementedFunc),
|
||||
/* 5 */ SyscallDesc("open", unimplementedFunc),
|
||||
/* 6 */ SyscallDesc("close", unimplementedFunc),
|
||||
/* 7 */ SyscallDesc("waitpid", unimplementedFunc),
|
||||
/* 8 */ SyscallDesc("creat", unimplementedFunc),
|
||||
/* 9 */ SyscallDesc("link", unimplementedFunc),
|
||||
/* 10 */ SyscallDesc("unlink", unimplementedFunc),
|
||||
/* 11 */ SyscallDesc("execve", unimplementedFunc),
|
||||
/* 12 */ SyscallDesc("chdir", unimplementedFunc),
|
||||
/* 13 */ SyscallDesc("time", unimplementedFunc),
|
||||
/* 14 */ SyscallDesc("mknod", unimplementedFunc),
|
||||
/* 15 */ SyscallDesc("chmod", unimplementedFunc),
|
||||
/* 16 */ SyscallDesc("lchown", unimplementedFunc),
|
||||
/* 17 */ SyscallDesc("break", unimplementedFunc),
|
||||
/* 18 */ SyscallDesc("oldstat", unimplementedFunc),
|
||||
/* 19 */ SyscallDesc("lseek", unimplementedFunc),
|
||||
/* 20 */ SyscallDesc("getpid", unimplementedFunc),
|
||||
/* 21 */ SyscallDesc("mount", unimplementedFunc),
|
||||
/* 22 */ SyscallDesc("umount", unimplementedFunc),
|
||||
/* 23 */ SyscallDesc("setuid", unimplementedFunc),
|
||||
/* 24 */ SyscallDesc("getuid", unimplementedFunc),
|
||||
/* 25 */ SyscallDesc("stime", unimplementedFunc),
|
||||
/* 26 */ SyscallDesc("ptrace", unimplementedFunc),
|
||||
/* 27 */ SyscallDesc("alarm", unimplementedFunc),
|
||||
/* 28 */ SyscallDesc("oldfstat", unimplementedFunc),
|
||||
/* 29 */ SyscallDesc("pause", unimplementedFunc),
|
||||
/* 30 */ SyscallDesc("utime", unimplementedFunc),
|
||||
/* 31 */ SyscallDesc("stty", unimplementedFunc),
|
||||
/* 32 */ SyscallDesc("gtty", unimplementedFunc),
|
||||
/* 33 */ SyscallDesc("access", unimplementedFunc),
|
||||
/* 34 */ SyscallDesc("nice", unimplementedFunc),
|
||||
/* 35 */ SyscallDesc("ftime", unimplementedFunc),
|
||||
/* 36 */ SyscallDesc("sync", unimplementedFunc),
|
||||
/* 37 */ SyscallDesc("kill", unimplementedFunc),
|
||||
/* 38 */ SyscallDesc("rename", unimplementedFunc),
|
||||
/* 39 */ SyscallDesc("mkdir", unimplementedFunc),
|
||||
/* 40 */ SyscallDesc("rmdir", unimplementedFunc),
|
||||
/* 41 */ SyscallDesc("dup", unimplementedFunc),
|
||||
/* 42 */ SyscallDesc("pipe", unimplementedFunc),
|
||||
/* 43 */ SyscallDesc("times", unimplementedFunc),
|
||||
/* 44 */ SyscallDesc("prof", unimplementedFunc),
|
||||
/* 45 */ SyscallDesc("brk", unimplementedFunc),
|
||||
/* 46 */ SyscallDesc("setgid", unimplementedFunc),
|
||||
/* 47 */ SyscallDesc("getgid", unimplementedFunc),
|
||||
/* 48 */ SyscallDesc("signal", unimplementedFunc),
|
||||
/* 49 */ SyscallDesc("geteuid", unimplementedFunc),
|
||||
/* 50 */ SyscallDesc("getegid", unimplementedFunc),
|
||||
/* 51 */ SyscallDesc("acct", unimplementedFunc),
|
||||
/* 52 */ SyscallDesc("umount2", unimplementedFunc),
|
||||
/* 53 */ SyscallDesc("lock", unimplementedFunc),
|
||||
/* 54 */ SyscallDesc("ioctl", unimplementedFunc),
|
||||
/* 55 */ SyscallDesc("fcntl", unimplementedFunc),
|
||||
/* 56 */ SyscallDesc("mpx", unimplementedFunc),
|
||||
/* 57 */ SyscallDesc("setpgid", unimplementedFunc),
|
||||
/* 58 */ SyscallDesc("ulimit", unimplementedFunc),
|
||||
/* 59 */ SyscallDesc("oldolduname", unimplementedFunc),
|
||||
/* 60 */ SyscallDesc("umask", unimplementedFunc),
|
||||
/* 61 */ SyscallDesc("chroot", unimplementedFunc),
|
||||
/* 62 */ SyscallDesc("ustat", unimplementedFunc),
|
||||
/* 63 */ SyscallDesc("dup2", unimplementedFunc),
|
||||
/* 64 */ SyscallDesc("getppid", unimplementedFunc),
|
||||
/* 65 */ SyscallDesc("getpgrp", unimplementedFunc),
|
||||
/* 66 */ SyscallDesc("setsid", unimplementedFunc),
|
||||
/* 67 */ SyscallDesc("sigaction", unimplementedFunc),
|
||||
/* 68 */ SyscallDesc("sgetmask", unimplementedFunc),
|
||||
/* 69 */ SyscallDesc("ssetmask", unimplementedFunc),
|
||||
/* 70 */ SyscallDesc("setreuid", unimplementedFunc),
|
||||
/* 71 */ SyscallDesc("setregid", unimplementedFunc),
|
||||
/* 72 */ SyscallDesc("sigsuspend", unimplementedFunc),
|
||||
/* 73 */ SyscallDesc("sigpending", unimplementedFunc),
|
||||
/* 74 */ SyscallDesc("sethostname", unimplementedFunc),
|
||||
/* 75 */ SyscallDesc("setrlimit", unimplementedFunc),
|
||||
/* 76 */ SyscallDesc("getrlimit", unimplementedFunc),
|
||||
/* 77 */ SyscallDesc("getrusage", unimplementedFunc),
|
||||
/* 78 */ SyscallDesc("gettimeofday", unimplementedFunc),
|
||||
/* 79 */ SyscallDesc("settimeofday", unimplementedFunc),
|
||||
/* 80 */ SyscallDesc("getgroups", unimplementedFunc),
|
||||
/* 81 */ SyscallDesc("setgroups", unimplementedFunc),
|
||||
/* 82 */ SyscallDesc("select", unimplementedFunc),
|
||||
/* 83 */ SyscallDesc("symlink", unimplementedFunc),
|
||||
/* 84 */ SyscallDesc("oldlstat", unimplementedFunc),
|
||||
/* 85 */ SyscallDesc("readlink", unimplementedFunc),
|
||||
/* 86 */ SyscallDesc("uselib", unimplementedFunc),
|
||||
/* 87 */ SyscallDesc("swapon", unimplementedFunc),
|
||||
/* 88 */ SyscallDesc("reboot", unimplementedFunc),
|
||||
/* 89 */ SyscallDesc("readdir", unimplementedFunc),
|
||||
/* 90 */ SyscallDesc("mmap", unimplementedFunc),
|
||||
/* 91 */ SyscallDesc("munmap", unimplementedFunc),
|
||||
/* 92 */ SyscallDesc("truncate", unimplementedFunc),
|
||||
/* 93 */ SyscallDesc("ftruncate", unimplementedFunc),
|
||||
/* 94 */ SyscallDesc("fchmod", unimplementedFunc),
|
||||
/* 95 */ SyscallDesc("fchown", unimplementedFunc),
|
||||
/* 96 */ SyscallDesc("getpriority", unimplementedFunc),
|
||||
/* 97 */ SyscallDesc("setpriority", unimplementedFunc),
|
||||
/* 98 */ SyscallDesc("profil", unimplementedFunc),
|
||||
/* 99 */ SyscallDesc("statfs", unimplementedFunc),
|
||||
/* 100 */ SyscallDesc("fstatfs", unimplementedFunc),
|
||||
/* 101 */ SyscallDesc("ioperm", unimplementedFunc),
|
||||
/* 102 */ SyscallDesc("socketcall", unimplementedFunc),
|
||||
/* 103 */ SyscallDesc("syslog", unimplementedFunc),
|
||||
/* 104 */ SyscallDesc("setitimer", unimplementedFunc),
|
||||
/* 105 */ SyscallDesc("getitimer", unimplementedFunc),
|
||||
/* 106 */ SyscallDesc("stat", unimplementedFunc),
|
||||
/* 107 */ SyscallDesc("lstat", unimplementedFunc),
|
||||
/* 108 */ SyscallDesc("fstat", unimplementedFunc),
|
||||
/* 109 */ SyscallDesc("olduname", unimplementedFunc),
|
||||
/* 110 */ SyscallDesc("iopl", unimplementedFunc),
|
||||
/* 111 */ SyscallDesc("vhangup", unimplementedFunc),
|
||||
/* 112 */ SyscallDesc("idle", unimplementedFunc),
|
||||
/* 113 */ SyscallDesc("vm86old", unimplementedFunc),
|
||||
/* 114 */ SyscallDesc("wait4", unimplementedFunc),
|
||||
/* 115 */ SyscallDesc("swapoff", unimplementedFunc),
|
||||
/* 116 */ SyscallDesc("sysinfo", unimplementedFunc),
|
||||
/* 117 */ SyscallDesc("ipc", unimplementedFunc),
|
||||
/* 118 */ SyscallDesc("fsync", unimplementedFunc),
|
||||
/* 119 */ SyscallDesc("sigreturn", unimplementedFunc),
|
||||
/* 120 */ SyscallDesc("clone", unimplementedFunc),
|
||||
/* 121 */ SyscallDesc("setdomainname", unimplementedFunc),
|
||||
/* 122 */ SyscallDesc("uname", unimplementedFunc),
|
||||
/* 123 */ SyscallDesc("modify_ldt", unimplementedFunc),
|
||||
/* 124 */ SyscallDesc("adjtimex", unimplementedFunc),
|
||||
/* 125 */ SyscallDesc("mprotect", unimplementedFunc),
|
||||
/* 126 */ SyscallDesc("sigprocmask", unimplementedFunc),
|
||||
/* 127 */ SyscallDesc("create_module", unimplementedFunc),
|
||||
/* 128 */ SyscallDesc("init_module", unimplementedFunc),
|
||||
/* 129 */ SyscallDesc("delete_module", unimplementedFunc),
|
||||
/* 130 */ SyscallDesc("get_kernel_syms", unimplementedFunc),
|
||||
/* 131 */ SyscallDesc("quotactl", unimplementedFunc),
|
||||
/* 132 */ SyscallDesc("getpgid", unimplementedFunc),
|
||||
/* 133 */ SyscallDesc("fchdir", unimplementedFunc),
|
||||
/* 134 */ SyscallDesc("bdflush", unimplementedFunc),
|
||||
/* 135 */ SyscallDesc("sysfs", unimplementedFunc),
|
||||
/* 136 */ SyscallDesc("personality", unimplementedFunc),
|
||||
/* 137 */ SyscallDesc("afs_syscall", unimplementedFunc),
|
||||
/* 138 */ SyscallDesc("setfsuid", unimplementedFunc),
|
||||
/* 139 */ SyscallDesc("setfsgid", unimplementedFunc),
|
||||
/* 140 */ SyscallDesc("_llseek", unimplementedFunc),
|
||||
/* 141 */ SyscallDesc("getdents", unimplementedFunc),
|
||||
/* 142 */ SyscallDesc("_newselect", unimplementedFunc),
|
||||
/* 143 */ SyscallDesc("flock", unimplementedFunc),
|
||||
/* 144 */ SyscallDesc("msync", unimplementedFunc),
|
||||
/* 145 */ SyscallDesc("readv", unimplementedFunc),
|
||||
/* 146 */ SyscallDesc("writev", unimplementedFunc),
|
||||
/* 147 */ SyscallDesc("getsid", unimplementedFunc),
|
||||
/* 148 */ SyscallDesc("fdatasync", unimplementedFunc),
|
||||
/* 149 */ SyscallDesc("_sysctl", unimplementedFunc),
|
||||
/* 150 */ SyscallDesc("mlock", unimplementedFunc),
|
||||
/* 151 */ SyscallDesc("munlock", unimplementedFunc),
|
||||
/* 152 */ SyscallDesc("mlockall", unimplementedFunc),
|
||||
/* 153 */ SyscallDesc("munlockall", unimplementedFunc),
|
||||
/* 154 */ SyscallDesc("sched_setparam", unimplementedFunc),
|
||||
/* 155 */ SyscallDesc("sched_getparam", unimplementedFunc),
|
||||
/* 156 */ SyscallDesc("sched_setscheduler", unimplementedFunc),
|
||||
/* 157 */ SyscallDesc("sched_getscheduler", unimplementedFunc),
|
||||
/* 158 */ SyscallDesc("sched_yield", unimplementedFunc),
|
||||
/* 159 */ SyscallDesc("sched_get_priority_max", unimplementedFunc),
|
||||
/* 160 */ SyscallDesc("sched_get_priority_min", unimplementedFunc),
|
||||
/* 161 */ SyscallDesc("sched_rr_get_interval", unimplementedFunc),
|
||||
/* 162 */ SyscallDesc("nanosleep", unimplementedFunc),
|
||||
/* 163 */ SyscallDesc("mremap", unimplementedFunc),
|
||||
/* 164 */ SyscallDesc("setresuid", unimplementedFunc),
|
||||
/* 165 */ SyscallDesc("getresuid", unimplementedFunc),
|
||||
/* 166 */ SyscallDesc("vm86", unimplementedFunc),
|
||||
/* 167 */ SyscallDesc("query_module", unimplementedFunc),
|
||||
/* 168 */ SyscallDesc("poll", unimplementedFunc),
|
||||
/* 169 */ SyscallDesc("nfsservctl", unimplementedFunc),
|
||||
/* 170 */ SyscallDesc("setresgid", unimplementedFunc),
|
||||
/* 171 */ SyscallDesc("getresgid", unimplementedFunc),
|
||||
/* 172 */ SyscallDesc("prctl", unimplementedFunc),
|
||||
/* 173 */ SyscallDesc("rt_sigreturn", unimplementedFunc),
|
||||
/* 174 */ SyscallDesc("rt_sigaction", unimplementedFunc),
|
||||
/* 175 */ SyscallDesc("rt_sigprocmask", unimplementedFunc),
|
||||
/* 176 */ SyscallDesc("rt_sigpending", unimplementedFunc),
|
||||
/* 177 */ SyscallDesc("rt_sigtimedwait", unimplementedFunc),
|
||||
/* 178 */ SyscallDesc("rt_sigqueueinfo", unimplementedFunc),
|
||||
/* 179 */ SyscallDesc("rt_sigsuspend", unimplementedFunc),
|
||||
/* 180 */ SyscallDesc("pread64", unimplementedFunc),
|
||||
/* 181 */ SyscallDesc("pwrite64", unimplementedFunc),
|
||||
/* 182 */ SyscallDesc("chown", unimplementedFunc),
|
||||
/* 183 */ SyscallDesc("getcwd", unimplementedFunc),
|
||||
/* 184 */ SyscallDesc("capget", unimplementedFunc),
|
||||
/* 185 */ SyscallDesc("capset", unimplementedFunc),
|
||||
/* 186 */ SyscallDesc("sigaltstack", unimplementedFunc),
|
||||
/* 187 */ SyscallDesc("sendfile", unimplementedFunc),
|
||||
/* 188 */ SyscallDesc("getpmsg", unimplementedFunc),
|
||||
/* 189 */ SyscallDesc("putpmsg", unimplementedFunc),
|
||||
/* 190 */ SyscallDesc("vfork", unimplementedFunc),
|
||||
/* 191 */ SyscallDesc("ugetrlimit", unimplementedFunc),
|
||||
/* 192 */ SyscallDesc("mmap2", unimplementedFunc),
|
||||
/* 193 */ SyscallDesc("truncate64", unimplementedFunc),
|
||||
/* 194 */ SyscallDesc("ftruncate64", unimplementedFunc),
|
||||
/* 195 */ SyscallDesc("stat64", unimplementedFunc),
|
||||
/* 196 */ SyscallDesc("lstat64", unimplementedFunc),
|
||||
/* 197 */ SyscallDesc("fstat64", unimplementedFunc),
|
||||
/* 198 */ SyscallDesc("lchown32", unimplementedFunc),
|
||||
/* 199 */ SyscallDesc("getuid32", unimplementedFunc),
|
||||
/* 200 */ SyscallDesc("getgid32", unimplementedFunc),
|
||||
/* 201 */ SyscallDesc("geteuid32", unimplementedFunc),
|
||||
/* 202 */ SyscallDesc("getegid32", unimplementedFunc),
|
||||
/* 203 */ SyscallDesc("setreuid32", unimplementedFunc),
|
||||
/* 204 */ SyscallDesc("setregid32", unimplementedFunc),
|
||||
/* 205 */ SyscallDesc("getgroups32", unimplementedFunc),
|
||||
/* 206 */ SyscallDesc("setgroups32", unimplementedFunc),
|
||||
/* 207 */ SyscallDesc("fchown32", unimplementedFunc),
|
||||
/* 208 */ SyscallDesc("setresuid32", unimplementedFunc),
|
||||
/* 209 */ SyscallDesc("getresuid32", unimplementedFunc),
|
||||
/* 210 */ SyscallDesc("setresgid32", unimplementedFunc),
|
||||
/* 211 */ SyscallDesc("getresgid32", unimplementedFunc),
|
||||
/* 212 */ SyscallDesc("chown32", unimplementedFunc),
|
||||
/* 213 */ SyscallDesc("setuid32", unimplementedFunc),
|
||||
/* 214 */ SyscallDesc("setgid32", unimplementedFunc),
|
||||
/* 215 */ SyscallDesc("setfsuid32", unimplementedFunc),
|
||||
/* 216 */ SyscallDesc("setfsgid32", unimplementedFunc),
|
||||
/* 217 */ SyscallDesc("pivot_root", unimplementedFunc),
|
||||
/* 218 */ SyscallDesc("mincore", unimplementedFunc),
|
||||
/* 219 */ SyscallDesc("madvise", unimplementedFunc),
|
||||
/* 220 */ SyscallDesc("madvise1", unimplementedFunc),
|
||||
/* 221 */ SyscallDesc("getdents64", unimplementedFunc),
|
||||
/* 222 */ SyscallDesc("fcntl64", unimplementedFunc),
|
||||
/* 223 */ SyscallDesc("unused", unimplementedFunc),
|
||||
/* 224 */ SyscallDesc("gettid", unimplementedFunc),
|
||||
/* 225 */ SyscallDesc("readahead", unimplementedFunc),
|
||||
/* 226 */ SyscallDesc("setxattr", unimplementedFunc),
|
||||
/* 227 */ SyscallDesc("lsetxattr", unimplementedFunc),
|
||||
/* 228 */ SyscallDesc("fsetxattr", unimplementedFunc),
|
||||
/* 229 */ SyscallDesc("getxattr", unimplementedFunc),
|
||||
/* 230 */ SyscallDesc("lgetxattr", unimplementedFunc),
|
||||
/* 231 */ SyscallDesc("fgetxattr", unimplementedFunc),
|
||||
/* 232 */ SyscallDesc("listxattr", unimplementedFunc),
|
||||
/* 233 */ SyscallDesc("llistxattr", unimplementedFunc),
|
||||
/* 234 */ SyscallDesc("flistxattr", unimplementedFunc),
|
||||
/* 235 */ SyscallDesc("removexattr", unimplementedFunc),
|
||||
/* 236 */ SyscallDesc("lremovexattr", unimplementedFunc),
|
||||
/* 237 */ SyscallDesc("fremovexattr", unimplementedFunc),
|
||||
/* 238 */ SyscallDesc("tkill", unimplementedFunc),
|
||||
/* 239 */ SyscallDesc("sendfile64", unimplementedFunc),
|
||||
/* 240 */ SyscallDesc("futex", unimplementedFunc),
|
||||
/* 241 */ SyscallDesc("sched_setaffinity", unimplementedFunc),
|
||||
/* 242 */ SyscallDesc("sched_getaffinity", unimplementedFunc),
|
||||
/* 243 */ SyscallDesc("set_thread_area", unimplementedFunc),
|
||||
/* 244 */ SyscallDesc("get_thread_area", unimplementedFunc),
|
||||
/* 245 */ SyscallDesc("io_setup", unimplementedFunc),
|
||||
/* 246 */ SyscallDesc("io_destroy", unimplementedFunc),
|
||||
/* 247 */ SyscallDesc("io_getevents", unimplementedFunc),
|
||||
/* 248 */ SyscallDesc("io_submit", unimplementedFunc),
|
||||
/* 249 */ SyscallDesc("io_cancel", unimplementedFunc),
|
||||
/* 250 */ SyscallDesc("fadvise64", unimplementedFunc),
|
||||
/* 251 */ SyscallDesc("unused", unimplementedFunc),
|
||||
/* 252 */ SyscallDesc("exit_group", unimplementedFunc),
|
||||
/* 253 */ SyscallDesc("lookup_dcookie", unimplementedFunc),
|
||||
/* 254 */ SyscallDesc("epoll_create", unimplementedFunc),
|
||||
/* 255 */ SyscallDesc("epoll_ctl", unimplementedFunc),
|
||||
/* 256 */ SyscallDesc("epoll_wait", unimplementedFunc),
|
||||
/* 257 */ SyscallDesc("remap_file_pages", unimplementedFunc),
|
||||
/* 258 */ SyscallDesc("set_tid_address", unimplementedFunc),
|
||||
/* 259 */ SyscallDesc("timer_create", unimplementedFunc),
|
||||
/* 260 */ SyscallDesc("timer_settime", unimplementedFunc),
|
||||
/* 261 */ SyscallDesc("timer_gettime", unimplementedFunc),
|
||||
/* 262 */ SyscallDesc("timer_getoverrun", unimplementedFunc),
|
||||
/* 263 */ SyscallDesc("timer_delete", unimplementedFunc),
|
||||
/* 264 */ SyscallDesc("clock_settime", unimplementedFunc),
|
||||
/* 265 */ SyscallDesc("clock_gettime", unimplementedFunc),
|
||||
/* 266 */ SyscallDesc("clock_getres", unimplementedFunc),
|
||||
/* 267 */ SyscallDesc("clock_nanosleep", unimplementedFunc),
|
||||
/* 268 */ SyscallDesc("statfs64", unimplementedFunc),
|
||||
/* 269 */ SyscallDesc("fstatfs64", unimplementedFunc),
|
||||
/* 270 */ SyscallDesc("tgkill", unimplementedFunc),
|
||||
/* 271 */ SyscallDesc("utimes", unimplementedFunc),
|
||||
/* 272 */ SyscallDesc("fadvise64_64", unimplementedFunc),
|
||||
/* 273 */ SyscallDesc("vserver", unimplementedFunc),
|
||||
/* 274 */ SyscallDesc("mbind", unimplementedFunc),
|
||||
/* 275 */ SyscallDesc("get_mempolicy", unimplementedFunc),
|
||||
/* 276 */ SyscallDesc("set_mempolicy", unimplementedFunc),
|
||||
/* 277 */ SyscallDesc("mq_open", unimplementedFunc),
|
||||
/* 278 */ SyscallDesc("mq_unlink", unimplementedFunc),
|
||||
/* 279 */ SyscallDesc("mq_timedsend", unimplementedFunc),
|
||||
/* 280 */ SyscallDesc("mq_timedreceive", unimplementedFunc),
|
||||
/* 281 */ SyscallDesc("mq_notify", unimplementedFunc),
|
||||
/* 282 */ SyscallDesc("mq_getsetattr", unimplementedFunc),
|
||||
/* 283 */ SyscallDesc("kexec_load", unimplementedFunc),
|
||||
/* 284 */ SyscallDesc("waitid", unimplementedFunc),
|
||||
/* 285 */ SyscallDesc("sys_setaltroot", unimplementedFunc),
|
||||
/* 286 */ SyscallDesc("add_key", unimplementedFunc),
|
||||
/* 287 */ SyscallDesc("request_key", unimplementedFunc),
|
||||
/* 288 */ SyscallDesc("keyctl", unimplementedFunc),
|
||||
/* 289 */ SyscallDesc("ioprio_set", unimplementedFunc),
|
||||
/* 290 */ SyscallDesc("ioprio_get", unimplementedFunc),
|
||||
/* 291 */ SyscallDesc("inotify_init", unimplementedFunc),
|
||||
/* 292 */ SyscallDesc("inotify_add_watch", unimplementedFunc),
|
||||
/* 293 */ SyscallDesc("inotify_rm_watch", unimplementedFunc),
|
||||
/* 294 */ SyscallDesc("migrate_pages", unimplementedFunc),
|
||||
/* 295 */ SyscallDesc("openat", unimplementedFunc),
|
||||
/* 296 */ SyscallDesc("mkdirat", unimplementedFunc),
|
||||
/* 297 */ SyscallDesc("mknodat", unimplementedFunc),
|
||||
/* 298 */ SyscallDesc("fchownat", unimplementedFunc),
|
||||
/* 299 */ SyscallDesc("futimesat", unimplementedFunc),
|
||||
/* 300 */ SyscallDesc("fstatat64", unimplementedFunc),
|
||||
/* 301 */ SyscallDesc("unlinkat", unimplementedFunc),
|
||||
/* 302 */ SyscallDesc("renameat", unimplementedFunc),
|
||||
/* 303 */ SyscallDesc("linkat", unimplementedFunc),
|
||||
/* 304 */ SyscallDesc("symlinkat", unimplementedFunc),
|
||||
/* 305 */ SyscallDesc("readlinkat", unimplementedFunc),
|
||||
/* 306 */ SyscallDesc("fchmodat", unimplementedFunc),
|
||||
/* 307 */ SyscallDesc("faccessat", unimplementedFunc),
|
||||
/* 308 */ SyscallDesc("pselect6", unimplementedFunc),
|
||||
/* 309 */ SyscallDesc("ppoll", unimplementedFunc),
|
||||
/* 310 */ SyscallDesc("unshare", unimplementedFunc),
|
||||
/* 311 */ SyscallDesc("set_robust_list", unimplementedFunc),
|
||||
/* 312 */ SyscallDesc("get_robust_list", unimplementedFunc),
|
||||
/* 313 */ SyscallDesc("splice", unimplementedFunc),
|
||||
/* 314 */ SyscallDesc("sync_file_range", unimplementedFunc),
|
||||
/* 315 */ SyscallDesc("tee", unimplementedFunc),
|
||||
/* 316 */ SyscallDesc("vmsplice", unimplementedFunc),
|
||||
/* 317 */ SyscallDesc("move_pages", unimplementedFunc),
|
||||
/* 318 */ SyscallDesc("getcpu", unimplementedFunc),
|
||||
/* 319 */ SyscallDesc("epoll_pwait", unimplementedFunc),
|
||||
/* 320 */ SyscallDesc("utimensat", unimplementedFunc),
|
||||
/* 321 */ SyscallDesc("signalfd", unimplementedFunc),
|
||||
/* 322 */ SyscallDesc("timerfd", unimplementedFunc),
|
||||
/* 323 */ SyscallDesc("eventfd", unimplementedFunc)
|
||||
};
|
||||
|
|
|
@ -717,9 +717,9 @@ LiveProcess::create(LiveProcessParams * params)
|
|||
// fall through
|
||||
case ObjectFile::Linux:
|
||||
if (objFile->getArch() == ObjectFile::X86_64) {
|
||||
process = new X86LinuxProcess(params, objFile);
|
||||
process = new X86_64LinuxProcess(params, objFile);
|
||||
} else {
|
||||
panic("32 bit x86 Linux process aren't implemented.\n");
|
||||
process = new I386LinuxProcess(params, objFile);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue