diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/linux/syscalls.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/arch/x86/linux/syscalls.cc b/src/arch/x86/linux/syscalls.cc index b016a380a..119152e86 100644 --- a/src/arch/x86/linux/syscalls.cc +++ b/src/arch/x86/linux/syscalls.cc @@ -223,18 +223,18 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = { /* 7 */ SyscallDesc("poll", unimplementedFunc), /* 8 */ SyscallDesc("lseek", lseekFunc), /* 9 */ SyscallDesc("mmap", mmapFunc<X86Linux64>), - /* 10 */ SyscallDesc("mprotect", unimplementedFunc), + /* 10 */ SyscallDesc("mprotect", ignoreFunc), /* 11 */ SyscallDesc("munmap", munmapFunc), /* 12 */ SyscallDesc("brk", brkFunc), /* 13 */ SyscallDesc("rt_sigaction", ignoreFunc), - /* 14 */ SyscallDesc("rt_sigprocmask", unimplementedFunc), + /* 14 */ SyscallDesc("rt_sigprocmask", ignoreFunc), /* 15 */ SyscallDesc("rt_sigreturn", unimplementedFunc), /* 16 */ SyscallDesc("ioctl", unimplementedFunc), /* 17 */ SyscallDesc("pread64", unimplementedFunc), /* 18 */ SyscallDesc("pwrite64", unimplementedFunc), /* 19 */ SyscallDesc("readv", unimplementedFunc), /* 20 */ SyscallDesc("writev", writevFunc<X86Linux64>), - /* 21 */ SyscallDesc("access", unimplementedFunc), + /* 21 */ SyscallDesc("access", ignoreFunc), /* 22 */ SyscallDesc("pipe", unimplementedFunc), /* 23 */ SyscallDesc("select", unimplementedFunc), /* 24 */ SyscallDesc("sched_yield", unimplementedFunc), @@ -245,7 +245,7 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = { /* 29 */ SyscallDesc("shmget", unimplementedFunc), /* 30 */ SyscallDesc("shmat", unimplementedFunc), /* 31 */ SyscallDesc("shmctl", unimplementedFunc), - /* 32 */ SyscallDesc("dup", unimplementedFunc), + /* 32 */ SyscallDesc("dup", dupFunc), /* 33 */ SyscallDesc("dup2", unimplementedFunc), /* 34 */ SyscallDesc("pause", unimplementedFunc), /* 35 */ SyscallDesc("nanosleep", unimplementedFunc), @@ -285,14 +285,14 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = { /* 69 */ SyscallDesc("msgsnd", unimplementedFunc), /* 70 */ SyscallDesc("msgrcv", unimplementedFunc), /* 71 */ SyscallDesc("msgctl", unimplementedFunc), - /* 72 */ SyscallDesc("fcntl", unimplementedFunc), + /* 72 */ SyscallDesc("fcntl", fcntlFunc), /* 73 */ SyscallDesc("flock", unimplementedFunc), /* 74 */ SyscallDesc("fsync", unimplementedFunc), /* 75 */ SyscallDesc("fdatasync", unimplementedFunc), /* 76 */ SyscallDesc("truncate", truncateFunc), /* 77 */ SyscallDesc("ftruncate", ftruncateFunc), /* 78 */ SyscallDesc("getdents", unimplementedFunc), - /* 79 */ SyscallDesc("getcwd", unimplementedFunc), + /* 79 */ SyscallDesc("getcwd", getcwdFunc), /* 80 */ SyscallDesc("chdir", unimplementedFunc), /* 81 */ SyscallDesc("fchdir", unimplementedFunc), /* 82 */ SyscallDesc("rename", renameFunc), @@ -313,7 +313,7 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = { /* 97 */ SyscallDesc("getrlimit", unimplementedFunc), /* 98 */ SyscallDesc("getrusage", unimplementedFunc), /* 99 */ SyscallDesc("sysinfo", sysinfoFunc<X86Linux64>), - /* 100 */ SyscallDesc("times", unimplementedFunc), + /* 100 */ SyscallDesc("times", timesFunc<X86Linux64>), /* 101 */ SyscallDesc("ptrace", unimplementedFunc), /* 102 */ SyscallDesc("getuid", getuidFunc), /* 103 */ SyscallDesc("syslog", unimplementedFunc), @@ -373,7 +373,7 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = { /* 157 */ SyscallDesc("prctl", unimplementedFunc), /* 158 */ SyscallDesc("arch_prctl", archPrctlFunc), /* 159 */ SyscallDesc("adjtimex", unimplementedFunc), - /* 160 */ SyscallDesc("setrlimit", unimplementedFunc), + /* 160 */ SyscallDesc("setrlimit", ignoreFunc), /* 161 */ SyscallDesc("chroot", unimplementedFunc), /* 162 */ SyscallDesc("sync", unimplementedFunc), /* 163 */ SyscallDesc("acct", unimplementedFunc), @@ -525,7 +525,7 @@ SyscallDesc I386LinuxProcess::syscallDescs[] = { /* 30 */ SyscallDesc("utime", unimplementedFunc), /* 31 */ SyscallDesc("stty", unimplementedFunc), /* 32 */ SyscallDesc("gtty", unimplementedFunc), - /* 33 */ SyscallDesc("access", unimplementedFunc), + /* 33 */ SyscallDesc("access", ignoreFunc), /* 34 */ SyscallDesc("nice", unimplementedFunc), /* 35 */ SyscallDesc("ftime", unimplementedFunc), /* 36 */ SyscallDesc("sync", unimplementedFunc), @@ -533,9 +533,9 @@ SyscallDesc I386LinuxProcess::syscallDescs[] = { /* 38 */ SyscallDesc("rename", unimplementedFunc), /* 39 */ SyscallDesc("mkdir", unimplementedFunc), /* 40 */ SyscallDesc("rmdir", unimplementedFunc), - /* 41 */ SyscallDesc("dup", unimplementedFunc), + /* 41 */ SyscallDesc("dup", dupFunc), /* 42 */ SyscallDesc("pipe", unimplementedFunc), - /* 43 */ SyscallDesc("times", unimplementedFunc), + /* 43 */ SyscallDesc("times", timesFunc<X86Linux32>), /* 44 */ SyscallDesc("prof", unimplementedFunc), /* 45 */ SyscallDesc("brk", brkFunc), /* 46 */ SyscallDesc("setgid", unimplementedFunc), @@ -567,7 +567,7 @@ SyscallDesc I386LinuxProcess::syscallDescs[] = { /* 72 */ SyscallDesc("sigsuspend", unimplementedFunc), /* 73 */ SyscallDesc("sigpending", unimplementedFunc), /* 74 */ SyscallDesc("sethostname", unimplementedFunc), - /* 75 */ SyscallDesc("setrlimit", unimplementedFunc), + /* 75 */ SyscallDesc("setrlimit", ignoreFunc), /* 76 */ SyscallDesc("getrlimit", unimplementedFunc), /* 77 */ SyscallDesc("getrusage", unimplementedFunc), /* 78 */ SyscallDesc("gettimeofday", unimplementedFunc), @@ -617,7 +617,7 @@ SyscallDesc I386LinuxProcess::syscallDescs[] = { /* 122 */ SyscallDesc("uname", unameFunc), /* 123 */ SyscallDesc("modify_ldt", unimplementedFunc), /* 124 */ SyscallDesc("adjtimex", unimplementedFunc), - /* 125 */ SyscallDesc("mprotect", unimplementedFunc), + /* 125 */ SyscallDesc("mprotect", ignoreFunc), /* 126 */ SyscallDesc("sigprocmask", unimplementedFunc), /* 127 */ SyscallDesc("create_module", unimplementedFunc), /* 128 */ SyscallDesc("init_module", unimplementedFunc), @@ -632,7 +632,7 @@ SyscallDesc I386LinuxProcess::syscallDescs[] = { /* 137 */ SyscallDesc("afs_syscall", unimplementedFunc), /* 138 */ SyscallDesc("setfsuid", unimplementedFunc), /* 139 */ SyscallDesc("setfsgid", unimplementedFunc), - /* 140 */ SyscallDesc("_llseek", unimplementedFunc), + /* 140 */ SyscallDesc("_llseek", _llseekFunc), /* 141 */ SyscallDesc("getdents", unimplementedFunc), /* 142 */ SyscallDesc("_newselect", unimplementedFunc), /* 143 */ SyscallDesc("flock", unimplementedFunc), @@ -667,7 +667,7 @@ SyscallDesc I386LinuxProcess::syscallDescs[] = { /* 172 */ SyscallDesc("prctl", unimplementedFunc), /* 173 */ SyscallDesc("rt_sigreturn", unimplementedFunc), /* 174 */ SyscallDesc("rt_sigaction", ignoreFunc), - /* 175 */ SyscallDesc("rt_sigprocmask", unimplementedFunc), + /* 175 */ SyscallDesc("rt_sigprocmask", ignoreFunc), /* 176 */ SyscallDesc("rt_sigpending", unimplementedFunc), /* 177 */ SyscallDesc("rt_sigtimedwait", unimplementedFunc), /* 178 */ SyscallDesc("rt_sigqueueinfo", unimplementedFunc), @@ -675,7 +675,7 @@ SyscallDesc I386LinuxProcess::syscallDescs[] = { /* 180 */ SyscallDesc("pread64", unimplementedFunc), /* 181 */ SyscallDesc("pwrite64", unimplementedFunc), /* 182 */ SyscallDesc("chown", unimplementedFunc), - /* 183 */ SyscallDesc("getcwd", unimplementedFunc), + /* 183 */ SyscallDesc("getcwd", getcwdFunc), /* 184 */ SyscallDesc("capget", unimplementedFunc), /* 185 */ SyscallDesc("capset", unimplementedFunc), /* 186 */ SyscallDesc("sigaltstack", unimplementedFunc), @@ -683,7 +683,7 @@ SyscallDesc I386LinuxProcess::syscallDescs[] = { /* 188 */ SyscallDesc("getpmsg", unimplementedFunc), /* 189 */ SyscallDesc("putpmsg", unimplementedFunc), /* 190 */ SyscallDesc("vfork", unimplementedFunc), - /* 191 */ SyscallDesc("ugetrlimit", unimplementedFunc), + /* 191 */ SyscallDesc("ugetrlimit", ignoreFunc), /* 192 */ SyscallDesc("mmap2", mmapFunc<X86Linux32>), /* 193 */ SyscallDesc("truncate64", truncate64Func), /* 194 */ SyscallDesc("ftruncate64", ftruncate64Func), |