process.cc revision 13533:c19aabc6fe2b
1/* 2 * Copyright (c) 2010-2013, 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated 11 * unmodified and in its entirety in all distributions of the software, 12 * modified or unmodified, in source code or in binary form. 13 * 14 * Copyright (c) 2003-2005 The Regents of The University of Michigan 15 * Copyright (c) 2007-2008 The Florida State University 16 * All rights reserved. 17 * 18 * Redistribution and use in source and binary forms, with or without 19 * modification, are permitted provided that the following conditions are 20 * met: redistributions of source code must retain the above copyright 21 * notice, this list of conditions and the following disclaimer; 22 * redistributions in binary form must reproduce the above copyright 23 * notice, this list of conditions and the following disclaimer in the 24 * documentation and/or other materials provided with the distribution; 25 * neither the name of the copyright holders nor the names of its 26 * contributors may be used to endorse or promote products derived from 27 * this software without specific prior written permission. 28 * 29 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 30 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 31 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 32 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 33 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 34 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 35 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 40 * 41 * Authors: Korey Sewell 42 * Stephen Hines 43 * Ali Saidi 44 * Giacomo Gabrielli 45 */ 46 47#include "arch/arm/linux/process.hh" 48 49#include "arch/arm/isa_traits.hh" 50#include "arch/arm/linux/linux.hh" 51#include "base/trace.hh" 52#include "cpu/thread_context.hh" 53#include "kern/linux/linux.hh" 54#include "sim/process.hh" 55#include "sim/syscall_desc.hh" 56#include "sim/syscall_emul.hh" 57#include "sim/system.hh" 58 59using namespace std; 60using namespace ArmISA; 61 62/// Target uname() handler. 63static SyscallReturn 64unameFunc32(SyscallDesc *desc, int callnum, Process *process, 65 ThreadContext *tc) 66{ 67 int index = 0; 68 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 69 70 strcpy(name->sysname, "Linux"); 71 strcpy(name->nodename, "m5.eecs.umich.edu"); 72 strcpy(name->release, "3.7.0+"); 73 strcpy(name->version, "#1 SMP Sat Dec 1 00:00:00 GMT 2012"); 74 strcpy(name->machine, "armv7l"); 75 76 name.copyOut(tc->getMemProxy()); 77 return 0; 78} 79 80/// Target uname() handler. 81static SyscallReturn 82unameFunc64(SyscallDesc *desc, int callnum, Process *process, 83 ThreadContext *tc) 84{ 85 int index = 0; 86 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 87 88 strcpy(name->sysname, "Linux"); 89 strcpy(name->nodename, "gem5"); 90 strcpy(name->release, "3.7.0+"); 91 strcpy(name->version, "#1 SMP Sat Dec 1 00:00:00 GMT 2012"); 92 strcpy(name->machine, "armv8l"); 93 94 name.copyOut(tc->getMemProxy()); 95 return 0; 96} 97 98/// Target set_tls() handler. 99static SyscallReturn 100setTLSFunc32(SyscallDesc *desc, int callnum, Process *process, 101 ThreadContext *tc) 102{ 103 int index = 0; 104 uint32_t tlsPtr = process->getSyscallArg(tc, index); 105 106 tc->getMemProxy().writeBlob(ArmLinuxProcess32::commPage + 0x0ff0, 107 (uint8_t *)&tlsPtr, sizeof(tlsPtr)); 108 tc->setMiscReg(MISCREG_TPIDRURO,tlsPtr); 109 return 0; 110} 111 112static SyscallReturn 113setTLSFunc64(SyscallDesc *desc, int callnum, Process *process, 114 ThreadContext *tc) 115{ 116 int index = 0; 117 uint32_t tlsPtr = process->getSyscallArg(tc, index); 118 119 tc->setMiscReg(MISCREG_TPIDRRO_EL0, tlsPtr); 120 return 0; 121} 122 123static SyscallDesc syscallDescs32[] = { 124 /* 0 */ SyscallDesc("syscall", unimplementedFunc), 125 /* 1 */ SyscallDesc("exit", exitFunc), 126 /* 2 */ SyscallDesc("fork", unimplementedFunc), 127 /* 3 */ SyscallDesc("read", readFunc), 128 /* 4 */ SyscallDesc("write", writeFunc), 129 /* 5 */ SyscallDesc("open", openFunc<ArmLinux32>), 130 /* 6 */ SyscallDesc("close", closeFunc), 131 /* 7 */ SyscallDesc("unused#7", unimplementedFunc), 132 /* 8 */ SyscallDesc("creat", unimplementedFunc), 133 /* 9 */ SyscallDesc("link", unimplementedFunc), 134 /* 10 */ SyscallDesc("unlink", unlinkFunc), 135 /* 11 */ SyscallDesc("execve", execveFunc<ArmLinux32>), 136 /* 12 */ SyscallDesc("chdir", unimplementedFunc), 137 /* 13 */ SyscallDesc("time", timeFunc<ArmLinux32>), 138 /* 14 */ SyscallDesc("mknod", unimplementedFunc), 139 /* 15 */ SyscallDesc("chmod", chmodFunc<ArmLinux32>), 140 /* 16 */ SyscallDesc("lchown", chownFunc), 141 /* 17 */ SyscallDesc("unused#17", unimplementedFunc), 142 /* 18 */ SyscallDesc("unused#18", unimplementedFunc), 143 /* 19 */ SyscallDesc("lseek", lseekFunc), 144 /* 20 */ SyscallDesc("getpid", getpidFunc), 145 /* 21 */ SyscallDesc("mount", unimplementedFunc), 146 /* 22 */ SyscallDesc("umount", unimplementedFunc), 147 /* 23 */ SyscallDesc("setuid", setuidFunc), 148 /* 24 */ SyscallDesc("getuid", getuidFunc), 149 /* 25 */ SyscallDesc("stime", unimplementedFunc), 150 /* 26 */ SyscallDesc("ptrace", unimplementedFunc), 151 /* 27 */ SyscallDesc("alarm", unimplementedFunc), 152 /* 28 */ SyscallDesc("unused#28", unimplementedFunc), 153 /* 29 */ SyscallDesc("pause", unimplementedFunc), 154 /* 30 */ SyscallDesc("utime", unimplementedFunc), 155 /* 31 */ SyscallDesc("unused#31", unimplementedFunc), 156 /* 32 */ SyscallDesc("unused#32", unimplementedFunc), 157 /* 33 */ SyscallDesc("access", accessFunc), 158 /* 34 */ SyscallDesc("nice", unimplementedFunc), 159 /* 35 */ SyscallDesc("unused#35", unimplementedFunc), 160 /* 36 */ SyscallDesc("sync", unimplementedFunc), 161 /* 37 */ SyscallDesc("kill", ignoreFunc), 162 /* 38 */ SyscallDesc("rename", renameFunc), 163 /* 39 */ SyscallDesc("mkdir", mkdirFunc), 164 /* 40 */ SyscallDesc("rmdir", unimplementedFunc), 165 /* 41 */ SyscallDesc("dup", dupFunc), 166 /* 42 */ SyscallDesc("pipe", pipePseudoFunc), 167 /* 43 */ SyscallDesc("times", timesFunc<ArmLinux32>), 168 /* 44 */ SyscallDesc("unused#44", unimplementedFunc), 169 /* 45 */ SyscallDesc("brk", brkFunc), 170 /* 46 */ SyscallDesc("setgid", unimplementedFunc), 171 /* 47 */ SyscallDesc("getgid", getgidFunc), 172 /* 48 */ SyscallDesc("unused#48", unimplementedFunc), 173 /* 49 */ SyscallDesc("geteuid", geteuidFunc), 174 /* 50 */ SyscallDesc("getegid", getegidFunc), 175 /* 51 */ SyscallDesc("acct", unimplementedFunc), 176 /* 52 */ SyscallDesc("umount2", unimplementedFunc), 177 /* 53 */ SyscallDesc("unused#53", unimplementedFunc), 178 /* 54 */ SyscallDesc("ioctl", ioctlFunc<ArmLinux32>), 179 /* 55 */ SyscallDesc("fcntl", fcntlFunc), 180 /* 56 */ SyscallDesc("unused#56", unimplementedFunc), 181 /* 57 */ SyscallDesc("setpgid", unimplementedFunc), 182 /* 58 */ SyscallDesc("unused#58", unimplementedFunc), 183 /* 59 */ SyscallDesc("unused#59", unimplementedFunc), 184 /* 60 */ SyscallDesc("umask", umaskFunc), 185 /* 61 */ SyscallDesc("chroot", unimplementedFunc), 186 /* 62 */ SyscallDesc("ustat", unimplementedFunc), 187 /* 63 */ SyscallDesc("dup2", unimplementedFunc), 188 /* 64 */ SyscallDesc("getppid", getppidFunc), 189 /* 65 */ SyscallDesc("getpgrp", unimplementedFunc), 190 /* 66 */ SyscallDesc("setsid", unimplementedFunc), 191 /* 67 */ SyscallDesc("sigaction",unimplementedFunc), 192 /* 68 */ SyscallDesc("unused#68", unimplementedFunc), 193 /* 69 */ SyscallDesc("unused#69", unimplementedFunc), 194 /* 70 */ SyscallDesc("setreuid", unimplementedFunc), 195 /* 71 */ SyscallDesc("setregid", unimplementedFunc), 196 /* 72 */ SyscallDesc("sigsuspend", unimplementedFunc), 197 /* 73 */ SyscallDesc("sigpending", unimplementedFunc), 198 /* 74 */ SyscallDesc("sethostname", ignoreFunc), 199 /* 75 */ SyscallDesc("setrlimit", ignoreFunc), 200 /* 76 */ SyscallDesc("getrlimit", getrlimitFunc<ArmLinux32>), 201 /* 77 */ SyscallDesc("getrusage", getrusageFunc<ArmLinux32>), 202 /* 78 */ SyscallDesc("gettimeofday", gettimeofdayFunc<ArmLinux32>), 203 /* 79 */ SyscallDesc("settimeofday", unimplementedFunc), 204 /* 80 */ SyscallDesc("getgroups", unimplementedFunc), 205 /* 81 */ SyscallDesc("setgroups", unimplementedFunc), 206 /* 82 */ SyscallDesc("reserved#82", unimplementedFunc), 207 /* 83 */ SyscallDesc("symlink", unimplementedFunc), 208 /* 84 */ SyscallDesc("unused#84", unimplementedFunc), 209 /* 85 */ SyscallDesc("readlink", readlinkFunc), 210 /* 86 */ SyscallDesc("uselib", unimplementedFunc), 211 /* 87 */ SyscallDesc("swapon", unimplementedFunc), 212 /* 88 */ SyscallDesc("reboot", unimplementedFunc), 213 /* 89 */ SyscallDesc("readdir", unimplementedFunc), 214 /* 90 */ SyscallDesc("mmap", mmapFunc<ArmLinux32>), 215 /* 91 */ SyscallDesc("munmap", munmapFunc), 216 /* 92 */ SyscallDesc("truncate", truncateFunc), 217 /* 93 */ SyscallDesc("ftruncate", ftruncateFunc), 218 /* 94 */ SyscallDesc("fchmod", unimplementedFunc), 219 /* 95 */ SyscallDesc("fchown", unimplementedFunc), 220 /* 96 */ SyscallDesc("getpriority", unimplementedFunc), 221 /* 97 */ SyscallDesc("setpriority", unimplementedFunc), 222 /* 98 */ SyscallDesc("unused#98", unimplementedFunc), 223 /* 99 */ SyscallDesc("statfs", unimplementedFunc), 224 /* 100 */ SyscallDesc("fstatfs", unimplementedFunc), 225 /* 101 */ SyscallDesc("unused#101", unimplementedFunc), 226 /* 102 */ SyscallDesc("socketcall", unimplementedFunc), 227 /* 103 */ SyscallDesc("syslog", unimplementedFunc), 228 /* 104 */ SyscallDesc("setitimer", unimplementedFunc), 229 /* 105 */ SyscallDesc("getitimer", unimplementedFunc), 230 /* 106 */ SyscallDesc("stat", statFunc<ArmLinux32>), 231 /* 107 */ SyscallDesc("lstat", unimplementedFunc), 232 /* 108 */ SyscallDesc("fstat", fstatFunc<ArmLinux32>), 233 /* 109 */ SyscallDesc("unused#109", unimplementedFunc), 234 /* 110 */ SyscallDesc("unused#101", unimplementedFunc), 235 /* 111 */ SyscallDesc("vhangup", unimplementedFunc), 236 /* 112 */ SyscallDesc("unused#112", unimplementedFunc), 237 /* 113 */ SyscallDesc("syscall", unimplementedFunc), 238 /* 114 */ SyscallDesc("wait4", unimplementedFunc), 239 /* 115 */ SyscallDesc("swapoff", unimplementedFunc), 240 /* 116 */ SyscallDesc("sysinfo", sysinfoFunc<ArmLinux32>), 241 /* 117 */ SyscallDesc("ipc", unimplementedFunc), 242 /* 118 */ SyscallDesc("fsync", unimplementedFunc), 243 /* 119 */ SyscallDesc("sigreturn", unimplementedFunc), 244 /* 120 */ SyscallDesc("clone", cloneFunc<ArmLinux32>), 245 /* 121 */ SyscallDesc("setdomainname", unimplementedFunc), 246 /* 122 */ SyscallDesc("uname", unameFunc32), 247 /* 123 */ SyscallDesc("unused#123", unimplementedFunc), 248 /* 124 */ SyscallDesc("adjtimex", unimplementedFunc), 249 /* 125 */ SyscallDesc("mprotect", ignoreFunc), 250 /* 126 */ SyscallDesc("sigprocmask", ignoreFunc, SyscallDesc::WarnOnce), 251 /* 127 */ SyscallDesc("unused#127", unimplementedFunc), 252 /* 128 */ SyscallDesc("init_module", unimplementedFunc), 253 /* 129 */ SyscallDesc("delete_module", unimplementedFunc), 254 /* 130 */ SyscallDesc("unused#130", unimplementedFunc), 255 /* 131 */ SyscallDesc("quotactl", unimplementedFunc), 256 /* 132 */ SyscallDesc("getpgid", unimplementedFunc), 257 /* 133 */ SyscallDesc("fchdir", unimplementedFunc), 258 /* 134 */ SyscallDesc("bdflush", unimplementedFunc), 259 /* 135 */ SyscallDesc("sysfs", unimplementedFunc), 260 /* 136 */ SyscallDesc("personality", unimplementedFunc), 261 /* 137 */ SyscallDesc("reserved#138", unimplementedFunc), 262 /* 138 */ SyscallDesc("setfsuid", unimplementedFunc), 263 /* 139 */ SyscallDesc("setfsgid", unimplementedFunc), 264 /* 140 */ SyscallDesc("llseek", _llseekFunc), 265#if defined(SYS_getdents) 266 /* 141 */ SyscallDesc("getdents", getdentsFunc), 267#else 268 /* 141 */ SyscallDesc("getdents", unimplementedFunc), 269#endif 270 /* 142 */ SyscallDesc("newselect", unimplementedFunc), 271 /* 143 */ SyscallDesc("flock", unimplementedFunc), 272 /* 144 */ SyscallDesc("msync", unimplementedFunc), 273 /* 145 */ SyscallDesc("readv", unimplementedFunc), 274 /* 146 */ SyscallDesc("writev", writevFunc<ArmLinux32>), 275 /* 147 */ SyscallDesc("getsid", unimplementedFunc), 276 /* 148 */ SyscallDesc("fdatasync", unimplementedFunc), 277 /* 149 */ SyscallDesc("sysctl", unimplementedFunc), 278 /* 150 */ SyscallDesc("mlock", unimplementedFunc), 279 /* 151 */ SyscallDesc("munlock", unimplementedFunc), 280 /* 152 */ SyscallDesc("mlockall", unimplementedFunc), 281 /* 153 */ SyscallDesc("munlockall", unimplementedFunc), 282 /* 154 */ SyscallDesc("sched_setparam", unimplementedFunc), 283 /* 155 */ SyscallDesc("sched_getparam", unimplementedFunc), 284 /* 156 */ SyscallDesc("sched_setscheduler", unimplementedFunc), 285 /* 157 */ SyscallDesc("sched_getscheduler", unimplementedFunc), 286 /* 158 */ SyscallDesc("sched_yield", unimplementedFunc), 287 /* 159 */ SyscallDesc("sched_get_priority_max", unimplementedFunc), 288 /* 160 */ SyscallDesc("sched_get_priority_min", unimplementedFunc), 289 /* 161 */ SyscallDesc("sched_rr_get_interval", unimplementedFunc), 290 /* 162 */ SyscallDesc("nanosleep", ignoreFunc, SyscallDesc::WarnOnce), 291 /* 163 */ SyscallDesc("mremap", mremapFunc<ArmLinux32>), // ARM-specific 292 /* 164 */ SyscallDesc("setresuid", unimplementedFunc), 293 /* 165 */ SyscallDesc("getresuid", unimplementedFunc), 294 /* 166 */ SyscallDesc("unused#166", unimplementedFunc), 295 /* 167 */ SyscallDesc("unused#167", unimplementedFunc), 296 /* 168 */ SyscallDesc("poll", unimplementedFunc), 297 /* 169 */ SyscallDesc("nfsservctl", unimplementedFunc), 298 /* 170 */ SyscallDesc("setresgid", unimplementedFunc), 299 /* 171 */ SyscallDesc("getresgid", unimplementedFunc), 300 /* 172 */ SyscallDesc("prctl", unimplementedFunc), 301 /* 173 */ SyscallDesc("rt_sigreturn", unimplementedFunc), 302 /* 174 */ SyscallDesc("rt_sigaction", ignoreFunc, SyscallDesc::WarnOnce), 303 /* 175 */ SyscallDesc("rt_sigprocmask", ignoreFunc, SyscallDesc::WarnOnce), 304 /* 176 */ SyscallDesc("rt_sigpending", unimplementedFunc), 305 /* 177 */ SyscallDesc("rt_sigtimedwait", unimplementedFunc), 306 /* 178 */ SyscallDesc("rt_sigqueueinfo", ignoreFunc), 307 /* 179 */ SyscallDesc("rt_sigsuspend", unimplementedFunc), 308 /* 180 */ SyscallDesc("pread64", unimplementedFunc), 309 /* 181 */ SyscallDesc("pwrite64", unimplementedFunc), 310 /* 182 */ SyscallDesc("chown", unimplementedFunc), 311 /* 183 */ SyscallDesc("getcwd", getcwdFunc), 312 /* 184 */ SyscallDesc("capget", unimplementedFunc), 313 /* 185 */ SyscallDesc("capset", unimplementedFunc), 314 /* 186 */ SyscallDesc("sigaltstack", unimplementedFunc), 315 /* 187 */ SyscallDesc("sendfile", unimplementedFunc), 316 /* 188 */ SyscallDesc("unused#188", unimplementedFunc), 317 /* 189 */ SyscallDesc("unused#189", unimplementedFunc), 318 /* 190 */ SyscallDesc("vfork", unimplementedFunc), 319 /* 191 */ SyscallDesc("getrlimit", getrlimitFunc<ArmLinux32>), 320 /* 192 */ SyscallDesc("mmap2", mmapFunc<ArmLinux32>), 321 /* 193 */ SyscallDesc("truncate64", unimplementedFunc), 322 /* 194 */ SyscallDesc("ftruncate64", ftruncate64Func), 323 /* 195 */ SyscallDesc("stat64", stat64Func<ArmLinux32>), 324 /* 196 */ SyscallDesc("lstat64", lstat64Func<ArmLinux32>), 325 /* 197 */ SyscallDesc("fstat64", fstat64Func<ArmLinux32>), 326 /* 198 */ SyscallDesc("lchown", unimplementedFunc), 327 /* 199 */ SyscallDesc("getuid", getuidFunc), 328 /* 200 */ SyscallDesc("getgid", getgidFunc), 329 /* 201 */ SyscallDesc("geteuid", geteuidFunc), 330 /* 202 */ SyscallDesc("getegid", getegidFunc), 331 /* 203 */ SyscallDesc("setreuid", unimplementedFunc), 332 /* 204 */ SyscallDesc("setregid", unimplementedFunc), 333 /* 205 */ SyscallDesc("getgroups", unimplementedFunc), 334 /* 206 */ SyscallDesc("setgroups", unimplementedFunc), 335 /* 207 */ SyscallDesc("fchown", unimplementedFunc), 336 /* 208 */ SyscallDesc("setresuid", unimplementedFunc), 337 /* 209 */ SyscallDesc("getresuid", unimplementedFunc), 338 /* 210 */ SyscallDesc("setresgid", unimplementedFunc), 339 /* 211 */ SyscallDesc("getresgid", unimplementedFunc), 340 /* 212 */ SyscallDesc("chown", unimplementedFunc), 341 /* 213 */ SyscallDesc("setuid", unimplementedFunc), 342 /* 214 */ SyscallDesc("setgid", unimplementedFunc), 343 /* 215 */ SyscallDesc("setfsuid", unimplementedFunc), 344 /* 216 */ SyscallDesc("setfsgid", unimplementedFunc), 345 /* 217 */ SyscallDesc("getdents64", unimplementedFunc), 346 /* 218 */ SyscallDesc("pivot_root", unimplementedFunc), 347 /* 219 */ SyscallDesc("mincore", unimplementedFunc), 348 /* 220 */ SyscallDesc("madvise", ignoreFunc), 349 /* 221 */ SyscallDesc("fcntl64", fcntl64Func), 350 /* 222 */ SyscallDesc("unused#222", unimplementedFunc), 351 /* 223 */ SyscallDesc("unknown#223", unimplementedFunc), 352 /* 224 */ SyscallDesc("gettid", gettidFunc), 353 /* 225 */ SyscallDesc("readahead", unimplementedFunc), 354 /* 226 */ SyscallDesc("setxattr", unimplementedFunc), 355 /* 227 */ SyscallDesc("lsetxattr", unimplementedFunc), 356 /* 228 */ SyscallDesc("fsetxattr", unimplementedFunc), 357 /* 229 */ SyscallDesc("getxattr", unimplementedFunc), 358 /* 230 */ SyscallDesc("lgetxattr", unimplementedFunc), 359 /* 231 */ SyscallDesc("fgetxattr", unimplementedFunc), 360 /* 232 */ SyscallDesc("listxattr", unimplementedFunc), 361 /* 233 */ SyscallDesc("llistxattr", unimplementedFunc), 362 /* 234 */ SyscallDesc("flistxattr", unimplementedFunc), 363 /* 235 */ SyscallDesc("removexattr", unimplementedFunc), 364 /* 236 */ SyscallDesc("lremovexattr", unimplementedFunc), 365 /* 237 */ SyscallDesc("fremovexattr", unimplementedFunc), 366 /* 238 */ SyscallDesc("tkill", unimplementedFunc), 367 /* 239 */ SyscallDesc("sendfile64", unimplementedFunc), 368 /* 240 */ SyscallDesc("futex", futexFunc<ArmLinux32>), 369 /* 241 */ SyscallDesc("sched_setaffinity", unimplementedFunc), 370 /* 242 */ SyscallDesc("sched_getaffinity", ignoreFunc), 371 /* 243 */ SyscallDesc("io_setup", unimplementedFunc), 372 /* 244 */ SyscallDesc("io_destroy", unimplementedFunc), 373 /* 245 */ SyscallDesc("io_getevents", unimplementedFunc), 374 /* 246 */ SyscallDesc("io_submit", unimplementedFunc), 375 /* 247 */ SyscallDesc("io_cancel", unimplementedFunc), 376 /* 248 */ SyscallDesc("exit_group", exitGroupFunc), 377 /* 249 */ SyscallDesc("lookup_dcookie", unimplementedFunc), 378 /* 250 */ SyscallDesc("epoll_create", unimplementedFunc), 379 /* 251 */ SyscallDesc("epoll_ctl", unimplementedFunc), 380 /* 252 */ SyscallDesc("epoll_wait", unimplementedFunc), 381 /* 253 */ SyscallDesc("remap_file_pages", unimplementedFunc), 382 /* 254 */ SyscallDesc("unused#254", unimplementedFunc), 383 /* 255 */ SyscallDesc("unused#255", unimplementedFunc), 384 /* 256 */ SyscallDesc("set_tid_address", setTidAddressFunc), 385 /* 257 */ SyscallDesc("timer_create", unimplementedFunc), 386 /* 258 */ SyscallDesc("timer_settime", unimplementedFunc), 387 /* 259 */ SyscallDesc("timer_gettime", unimplementedFunc), 388 /* 260 */ SyscallDesc("timer_getoverrun", unimplementedFunc), 389 /* 261 */ SyscallDesc("timer_delete", unimplementedFunc), 390 /* 262 */ SyscallDesc("clock_settime", unimplementedFunc), 391 /* 263 */ SyscallDesc("clock_gettime", clock_gettimeFunc<ArmLinux32>), 392 /* 264 */ SyscallDesc("clock_getres", clock_getresFunc<ArmLinux32>), 393 /* 265 */ SyscallDesc("clock_nanosleep", unimplementedFunc), 394 /* 266 */ SyscallDesc("statfs64", unimplementedFunc), 395 /* 267 */ SyscallDesc("fstatfs64", unimplementedFunc), 396 /* 268 */ SyscallDesc("tgkill", tgkillFunc<ArmLinux32>), 397 /* 269 */ SyscallDesc("utimes", unimplementedFunc), 398 /* 270 */ SyscallDesc("arm_fadvise64_64", unimplementedFunc), 399 /* 271 */ SyscallDesc("pciconfig_iobase", unimplementedFunc), 400 /* 272 */ SyscallDesc("pciconfig_read", unimplementedFunc), 401 /* 273 */ SyscallDesc("pciconfig_write", unimplementedFunc), 402 /* 274 */ SyscallDesc("mq_open", unimplementedFunc), 403 /* 275 */ SyscallDesc("mq_unlink", unimplementedFunc), 404 /* 276 */ SyscallDesc("mq_timedsend", unimplementedFunc), 405 /* 277 */ SyscallDesc("mq_timedreceive", unimplementedFunc), 406 /* 278 */ SyscallDesc("mq_notify", unimplementedFunc), 407 /* 279 */ SyscallDesc("mq_getsetattr", unimplementedFunc), 408 /* 280 */ SyscallDesc("waitid", unimplementedFunc), 409 /* 281 */ SyscallDesc("socket", unimplementedFunc), 410 /* 282 */ SyscallDesc("bind", unimplementedFunc), 411 /* 283 */ SyscallDesc("connect", unimplementedFunc), 412 /* 284 */ SyscallDesc("listen", unimplementedFunc), 413 /* 285 */ SyscallDesc("accept", unimplementedFunc), 414 /* 286 */ SyscallDesc("getsockname", unimplementedFunc), 415 /* 287 */ SyscallDesc("getpeername", unimplementedFunc), 416 /* 288 */ SyscallDesc("socketpair", unimplementedFunc), 417 /* 289 */ SyscallDesc("send", unimplementedFunc), 418 /* 290 */ SyscallDesc("sendto", unimplementedFunc), 419 /* 291 */ SyscallDesc("recv", unimplementedFunc), 420 /* 292 */ SyscallDesc("recvfrom", unimplementedFunc), 421 /* 293 */ SyscallDesc("shutdown", unimplementedFunc), 422 /* 294 */ SyscallDesc("setsockopt", unimplementedFunc), 423 /* 295 */ SyscallDesc("getsockopt", unimplementedFunc), 424 /* 296 */ SyscallDesc("sendmsg", unimplementedFunc), 425 /* 297 */ SyscallDesc("rcvmsg", unimplementedFunc), 426 /* 298 */ SyscallDesc("semop", unimplementedFunc), 427 /* 299 */ SyscallDesc("semget", unimplementedFunc), 428 /* 300 */ SyscallDesc("semctl", unimplementedFunc), 429 /* 301 */ SyscallDesc("msgsend", unimplementedFunc), 430 /* 302 */ SyscallDesc("msgrcv", unimplementedFunc), 431 /* 303 */ SyscallDesc("msgget", unimplementedFunc), 432 /* 304 */ SyscallDesc("msgctl", unimplementedFunc), 433 /* 305 */ SyscallDesc("shmat", unimplementedFunc), 434 /* 306 */ SyscallDesc("shmdt", unimplementedFunc), 435 /* 307 */ SyscallDesc("shmget", unimplementedFunc), 436 /* 308 */ SyscallDesc("shmctl", unimplementedFunc), 437 /* 309 */ SyscallDesc("add_key", unimplementedFunc), 438 /* 310 */ SyscallDesc("request_key", unimplementedFunc), 439 /* 311 */ SyscallDesc("keyctl", unimplementedFunc), 440 /* 312 */ SyscallDesc("semtimedop", unimplementedFunc), 441 /* 313 */ SyscallDesc("unused#313", unimplementedFunc), 442 /* 314 */ SyscallDesc("ioprio_set", unimplementedFunc), 443 /* 315 */ SyscallDesc("ioprio_get", unimplementedFunc), 444 /* 316 */ SyscallDesc("inotify_init", unimplementedFunc), 445 /* 317 */ SyscallDesc("inotify_add_watch", unimplementedFunc), 446 /* 318 */ SyscallDesc("inotify_rm_watch", unimplementedFunc), 447 /* 319 */ SyscallDesc("mbind", unimplementedFunc), 448 /* 320 */ SyscallDesc("get_mempolicy", unimplementedFunc), 449 /* 321 */ SyscallDesc("set_mempolicy", unimplementedFunc), 450 /* 322 */ SyscallDesc("openat", openatFunc<ArmLinux32>), 451 /* 323 */ SyscallDesc("mkdirat", unimplementedFunc), 452 /* 324 */ SyscallDesc("mknodat", unimplementedFunc), 453 /* 325 */ SyscallDesc("fchownat", unimplementedFunc), 454 /* 326 */ SyscallDesc("futimesat", unimplementedFunc), 455 /* 327 */ SyscallDesc("fstatat64", unimplementedFunc), 456 /* 328 */ SyscallDesc("unlinkat", unimplementedFunc), 457 /* 329 */ SyscallDesc("renameat", unimplementedFunc), 458 /* 330 */ SyscallDesc("linkat", unimplementedFunc), 459 /* 331 */ SyscallDesc("symlinkat", unimplementedFunc), 460 /* 332 */ SyscallDesc("readlinkat", unimplementedFunc), 461 /* 333 */ SyscallDesc("fchmodat", unimplementedFunc), 462 /* 334 */ SyscallDesc("faccessat", unimplementedFunc), 463 /* 335 */ SyscallDesc("pselect6", unimplementedFunc), 464 /* 336 */ SyscallDesc("ppoll", unimplementedFunc), 465 /* 337 */ SyscallDesc("unshare", unimplementedFunc), 466 /* 338 */ SyscallDesc("set_robust_list", ignoreFunc), 467 /* 339 */ SyscallDesc("get_robust_list", unimplementedFunc), 468 /* 340 */ SyscallDesc("splice", unimplementedFunc), 469 /* 341 */ SyscallDesc("arm_sync_file_range", unimplementedFunc), 470 /* 342 */ SyscallDesc("tee", unimplementedFunc), 471 /* 343 */ SyscallDesc("vmsplice", unimplementedFunc), 472 /* 344 */ SyscallDesc("move_pages", unimplementedFunc), 473 /* 345 */ SyscallDesc("getcpu", unimplementedFunc), 474 /* 346 */ SyscallDesc("epoll_pwait", unimplementedFunc), 475 /* 347 */ SyscallDesc("sys_kexec_load", unimplementedFunc), 476 /* 348 */ SyscallDesc("sys_utimensat", unimplementedFunc), 477 /* 349 */ SyscallDesc("sys_signalfd", unimplementedFunc), 478 /* 350 */ SyscallDesc("sys_timerfd_create", unimplementedFunc), 479 /* 351 */ SyscallDesc("sys_eventfd", unimplementedFunc), 480 /* 352 */ SyscallDesc("sys_fallocate", unimplementedFunc), 481 /* 353 */ SyscallDesc("sys_timerfd_settime", unimplementedFunc), 482 /* 354 */ SyscallDesc("sys_timerfd_gettime", unimplementedFunc), 483 /* 355 */ SyscallDesc("sys_signalfd4", unimplementedFunc), 484 /* 356 */ SyscallDesc("sys_eventfd2", unimplementedFunc), 485 /* 357 */ SyscallDesc("sys_epoll_create1", unimplementedFunc), 486 /* 358 */ SyscallDesc("sys_dup3", unimplementedFunc), 487 /* 359 */ SyscallDesc("sys_pipe2", unimplementedFunc), 488 /* 360 */ SyscallDesc("sys_inotify_init1", unimplementedFunc), 489 /* 361 */ SyscallDesc("sys_preadv", unimplementedFunc), 490 /* 362 */ SyscallDesc("sys_pwritev", unimplementedFunc), 491 /* 363 */ SyscallDesc("sys_rt_tgsigqueueinfo", unimplementedFunc), 492 /* 364 */ SyscallDesc("sys_perf_event_open", unimplementedFunc), 493 /* 365 */ SyscallDesc("sys_recvmmsg", unimplementedFunc), 494}; 495 496static SyscallDesc syscallDescs64[] = { 497 /* 0 */ SyscallDesc("io_setup", unimplementedFunc), 498 /* 1 */ SyscallDesc("io_destroy", unimplementedFunc), 499 /* 2 */ SyscallDesc("io_submit", unimplementedFunc), 500 /* 3 */ SyscallDesc("io_cancel", unimplementedFunc), 501 /* 4 */ SyscallDesc("io_getevents", unimplementedFunc), 502 /* 5 */ SyscallDesc("setxattr", unimplementedFunc), 503 /* 6 */ SyscallDesc("lsetxattr", unimplementedFunc), 504 /* 7 */ SyscallDesc("fsetxattr", unimplementedFunc), 505 /* 8 */ SyscallDesc("getxattr", unimplementedFunc), 506 /* 9 */ SyscallDesc("lgetxattr", unimplementedFunc), 507 /* 10 */ SyscallDesc("fgetxattr", unimplementedFunc), 508 /* 11 */ SyscallDesc("listxattr", unimplementedFunc), 509 /* 12 */ SyscallDesc("llistxattr", unimplementedFunc), 510 /* 13 */ SyscallDesc("flistxattr", unimplementedFunc), 511 /* 14 */ SyscallDesc("removexattr", unimplementedFunc), 512 /* 15 */ SyscallDesc("lremovexattr", unimplementedFunc), 513 /* 16 */ SyscallDesc("fremovexattr", unimplementedFunc), 514 /* 17 */ SyscallDesc("getcwd", getcwdFunc), 515 /* 18 */ SyscallDesc("lookup_dcookie", unimplementedFunc), 516 /* 19 */ SyscallDesc("eventfd2", unimplementedFunc), 517 /* 20 */ SyscallDesc("epoll_create1", unimplementedFunc), 518 /* 21 */ SyscallDesc("epoll_ctl", unimplementedFunc), 519 /* 22 */ SyscallDesc("epoll_pwait", unimplementedFunc), 520 /* 23 */ SyscallDesc("dup", dupFunc), 521 /* 24 */ SyscallDesc("dup3", unimplementedFunc), 522 /* 25 */ SyscallDesc("fcntl64", fcntl64Func), 523 /* 26 */ SyscallDesc("inotify_init1", unimplementedFunc), 524 /* 27 */ SyscallDesc("inotify_add_watch", unimplementedFunc), 525 /* 28 */ SyscallDesc("inotify_rm_watch", unimplementedFunc), 526 /* 29 */ SyscallDesc("ioctl", ioctlFunc<ArmLinux64>), 527 /* 30 */ SyscallDesc("ioprio_set", unimplementedFunc), 528 /* 31 */ SyscallDesc("ioprio_get", unimplementedFunc), 529 /* 32 */ SyscallDesc("flock", unimplementedFunc), 530 /* 33 */ SyscallDesc("mknodat", unimplementedFunc), 531 /* 34 */ SyscallDesc("mkdirat", unimplementedFunc), 532 /* 35 */ SyscallDesc("unlinkat", unlinkatFunc<ArmLinux64>), 533 /* 36 */ SyscallDesc("symlinkat", unimplementedFunc), 534 /* 37 */ SyscallDesc("linkat", unimplementedFunc), 535 /* 38 */ SyscallDesc("renameat", renameatFunc<ArmLinux64>), 536 /* 39 */ SyscallDesc("umount2", unimplementedFunc), 537 /* 40 */ SyscallDesc("mount", unimplementedFunc), 538 /* 41 */ SyscallDesc("pivot_root", unimplementedFunc), 539 /* 42 */ SyscallDesc("nfsservctl", unimplementedFunc), 540 /* 43 */ SyscallDesc("statfs64", unimplementedFunc), 541 /* 44 */ SyscallDesc("fstatfs64", unimplementedFunc), 542 /* 45 */ SyscallDesc("truncate64", unimplementedFunc), 543 /* 46 */ SyscallDesc("ftruncate64", ftruncate64Func), 544 /* 47 */ SyscallDesc("fallocate", unimplementedFunc), 545 /* 48 */ SyscallDesc("faccessat", faccessatFunc<ArmLinux64>), 546 /* 49 */ SyscallDesc("chdir", unimplementedFunc), 547 /* 50 */ SyscallDesc("fchdir", unimplementedFunc), 548 /* 51 */ SyscallDesc("chroot", unimplementedFunc), 549 /* 52 */ SyscallDesc("fchmod", unimplementedFunc), 550 /* 53 */ SyscallDesc("fchmodat", unimplementedFunc), 551 /* 54 */ SyscallDesc("fchownat", unimplementedFunc), 552 /* 55 */ SyscallDesc("fchown", unimplementedFunc), 553 /* 56 */ SyscallDesc("openat", openatFunc<ArmLinux64>), 554 /* 57 */ SyscallDesc("close", closeFunc), 555 /* 58 */ SyscallDesc("vhangup", unimplementedFunc), 556 /* 59 */ SyscallDesc("pipe2", unimplementedFunc), 557 /* 60 */ SyscallDesc("quotactl", unimplementedFunc), 558 /* 61 */ SyscallDesc("getdents64", unimplementedFunc), 559 /* 62 */ SyscallDesc("llseek", lseekFunc), 560 /* 63 */ SyscallDesc("read", readFunc), 561 /* 64 */ SyscallDesc("write", writeFunc), 562 /* 65 */ SyscallDesc("readv", unimplementedFunc), 563 /* 66 */ SyscallDesc("writev", writevFunc<ArmLinux64>), 564 /* 67 */ SyscallDesc("pread64", unimplementedFunc), 565 /* 68 */ SyscallDesc("pwrite64", unimplementedFunc), 566 /* 69 */ SyscallDesc("preadv", unimplementedFunc), 567 /* 70 */ SyscallDesc("pwritev", unimplementedFunc), 568 /* 71 */ SyscallDesc("sendfile64", unimplementedFunc), 569 /* 72 */ SyscallDesc("pselect6", unimplementedFunc), 570 /* 73 */ SyscallDesc("ppoll", unimplementedFunc), 571 /* 74 */ SyscallDesc("signalfd4", unimplementedFunc), 572 /* 75 */ SyscallDesc("vmsplice", unimplementedFunc), 573 /* 76 */ SyscallDesc("splice", unimplementedFunc), 574 /* 77 */ SyscallDesc("tee", unimplementedFunc), 575 /* 78 */ SyscallDesc("readlinkat", readlinkatFunc<ArmLinux64>), 576 /* 79 */ SyscallDesc("fstatat64", fstatat64Func<ArmLinux64>), 577 /* 80 */ SyscallDesc("fstat64", fstat64Func<ArmLinux64>), 578 /* 81 */ SyscallDesc("sync", unimplementedFunc), 579 /* 82 */ SyscallDesc("fsync", unimplementedFunc), 580 /* 83 */ SyscallDesc("fdatasync", unimplementedFunc), 581 /* 84 */ SyscallDesc("sync_file_range", unimplementedFunc), 582 /* 85 */ SyscallDesc("timerfd_create", unimplementedFunc), 583 /* 86 */ SyscallDesc("timerfd_settime", unimplementedFunc), 584 /* 87 */ SyscallDesc("timerfd_gettime", unimplementedFunc), 585 /* 88 */ SyscallDesc("utimensat", unimplementedFunc), 586 /* 89 */ SyscallDesc("acct", unimplementedFunc), 587 /* 90 */ SyscallDesc("capget", unimplementedFunc), 588 /* 91 */ SyscallDesc("capset", unimplementedFunc), 589 /* 92 */ SyscallDesc("personality", unimplementedFunc), 590 /* 93 */ SyscallDesc("exit", exitFunc), 591 /* 94 */ SyscallDesc("exit_group", exitGroupFunc), 592 /* 95 */ SyscallDesc("waitid", unimplementedFunc), 593 /* 96 */ SyscallDesc("set_tid_address", setTidAddressFunc), 594 /* 97 */ SyscallDesc("unshare", unimplementedFunc), 595 /* 98 */ SyscallDesc("futex", futexFunc<ArmLinux64>), 596 /* 99 */ SyscallDesc("set_robust_list", ignoreFunc), 597 /* 100 */ SyscallDesc("get_robust_list", unimplementedFunc), 598 /* 101 */ SyscallDesc("nanosleep", ignoreFunc, SyscallDesc::WarnOnce), 599 /* 102 */ SyscallDesc("getitimer", unimplementedFunc), 600 /* 103 */ SyscallDesc("setitimer", unimplementedFunc), 601 /* 104 */ SyscallDesc("kexec_load", unimplementedFunc), 602 /* 105 */ SyscallDesc("init_module", unimplementedFunc), 603 /* 106 */ SyscallDesc("delete_module", unimplementedFunc), 604 /* 107 */ SyscallDesc("timer_create", unimplementedFunc), 605 /* 108 */ SyscallDesc("timer_gettime", unimplementedFunc), 606 /* 109 */ SyscallDesc("timer_getoverrun", unimplementedFunc), 607 /* 110 */ SyscallDesc("timer_settime", unimplementedFunc), 608 /* 111 */ SyscallDesc("timer_delete", unimplementedFunc), 609 /* 112 */ SyscallDesc("clock_settime", unimplementedFunc), 610 /* 113 */ SyscallDesc("clock_gettime", clock_gettimeFunc<ArmLinux64>), 611 /* 114 */ SyscallDesc("clock_getres", unimplementedFunc), 612 /* 115 */ SyscallDesc("clock_nanosleep", unimplementedFunc), 613 /* 116 */ SyscallDesc("syslog", unimplementedFunc), 614 /* 117 */ SyscallDesc("ptrace", unimplementedFunc), 615 /* 118 */ SyscallDesc("sched_setparam", unimplementedFunc), 616 /* 119 */ SyscallDesc("sched_setscheduler", unimplementedFunc), 617 /* 120 */ SyscallDesc("sched_getscheduler", unimplementedFunc), 618 /* 121 */ SyscallDesc("sched_getparam", unimplementedFunc), 619 /* 122 */ SyscallDesc("sched_setaffinity", unimplementedFunc), 620 /* 123 */ SyscallDesc("sched_getaffinity", ignoreFunc), 621 /* 124 */ SyscallDesc("sched_yield", unimplementedFunc), 622 /* 125 */ SyscallDesc("sched_get_priority_max", unimplementedFunc), 623 /* 126 */ SyscallDesc("sched_get_priority_min", unimplementedFunc), 624 /* 127 */ SyscallDesc("sched_rr_get_interval", unimplementedFunc), 625 /* 128 */ SyscallDesc("restart_syscall", unimplementedFunc), 626 /* 129 */ SyscallDesc("kill", ignoreFunc), 627 /* 130 */ SyscallDesc("tkill", unimplementedFunc), 628 /* 131 */ SyscallDesc("tgkill", tgkillFunc<ArmLinux64>), 629 /* 132 */ SyscallDesc("sigaltstack", unimplementedFunc), 630 /* 133 */ SyscallDesc("rt_sigsuspend", unimplementedFunc), 631 /* 134 */ SyscallDesc("rt_sigaction", ignoreFunc), 632 /* 135 */ SyscallDesc("rt_sigprocmask", ignoreFunc, SyscallDesc::WarnOnce), 633 /* 136 */ SyscallDesc("rt_sigpending", unimplementedFunc), 634 /* 137 */ SyscallDesc("rt_sigtimedwait", unimplementedFunc), 635 /* 138 */ SyscallDesc("rt_sigqueueinfo", ignoreFunc), 636 /* 139 */ SyscallDesc("rt_sigreturn", unimplementedFunc), 637 /* 140 */ SyscallDesc("setpriority", unimplementedFunc), 638 /* 141 */ SyscallDesc("getpriority", unimplementedFunc), 639 /* 142 */ SyscallDesc("reboot", unimplementedFunc), 640 /* 143 */ SyscallDesc("setregid", unimplementedFunc), 641 /* 144 */ SyscallDesc("setgid", unimplementedFunc), 642 /* 145 */ SyscallDesc("setreuid", unimplementedFunc), 643 /* 146 */ SyscallDesc("setuid", unimplementedFunc), 644 /* 147 */ SyscallDesc("setresuid", unimplementedFunc), 645 /* 148 */ SyscallDesc("getresuid", unimplementedFunc), 646 /* 149 */ SyscallDesc("setresgid", unimplementedFunc), 647 /* 150 */ SyscallDesc("getresgid", unimplementedFunc), 648 /* 151 */ SyscallDesc("setfsuid", unimplementedFunc), 649 /* 152 */ SyscallDesc("setfsgid", unimplementedFunc), 650 /* 153 */ SyscallDesc("times", timesFunc<ArmLinux64>), 651 /* 154 */ SyscallDesc("setpgid", unimplementedFunc), 652 /* 155 */ SyscallDesc("getpgid", unimplementedFunc), 653 /* 156 */ SyscallDesc("getsid", unimplementedFunc), 654 /* 157 */ SyscallDesc("setsid", unimplementedFunc), 655 /* 158 */ SyscallDesc("getgroups", unimplementedFunc), 656 /* 159 */ SyscallDesc("setgroups", unimplementedFunc), 657 /* 160 */ SyscallDesc("uname", unameFunc64), 658 /* 161 */ SyscallDesc("sethostname", ignoreFunc), 659 /* 162 */ SyscallDesc("setdomainname", unimplementedFunc), 660 /* 163 */ SyscallDesc("getrlimit", getrlimitFunc<ArmLinux64>), 661 /* 164 */ SyscallDesc("setrlimit", ignoreFunc), 662 /* 165 */ SyscallDesc("getrusage", getrusageFunc<ArmLinux64>), 663 /* 166 */ SyscallDesc("umask", unimplementedFunc), 664 /* 167 */ SyscallDesc("prctl", unimplementedFunc), 665 /* 168 */ SyscallDesc("getcpu", unimplementedFunc), 666 /* 169 */ SyscallDesc("gettimeofday", gettimeofdayFunc<ArmLinux64>), 667 /* 170 */ SyscallDesc("settimeofday", unimplementedFunc), 668 /* 171 */ SyscallDesc("adjtimex", unimplementedFunc), 669 /* 172 */ SyscallDesc("getpid", getpidFunc), 670 /* 173 */ SyscallDesc("getppid", getppidFunc), 671 /* 174 */ SyscallDesc("getuid", getuidFunc), 672 /* 175 */ SyscallDesc("geteuid", geteuidFunc), 673 /* 176 */ SyscallDesc("getgid", getgidFunc), 674 /* 177 */ SyscallDesc("getegid", getegidFunc), 675 /* 178 */ SyscallDesc("gettid", gettidFunc), 676 /* 179 */ SyscallDesc("sysinfo", sysinfoFunc<ArmLinux64>), 677 /* 180 */ SyscallDesc("mq_open", unimplementedFunc), 678 /* 181 */ SyscallDesc("mq_unlink", unimplementedFunc), 679 /* 182 */ SyscallDesc("mq_timedsend", unimplementedFunc), 680 /* 183 */ SyscallDesc("mq_timedreceive", unimplementedFunc), 681 /* 184 */ SyscallDesc("mq_notify", unimplementedFunc), 682 /* 185 */ SyscallDesc("mq_getsetattr", unimplementedFunc), 683 /* 186 */ SyscallDesc("msgget", unimplementedFunc), 684 /* 187 */ SyscallDesc("msgctl", unimplementedFunc), 685 /* 188 */ SyscallDesc("msgrcv", unimplementedFunc), 686 /* 189 */ SyscallDesc("msgsnd", unimplementedFunc), 687 /* 190 */ SyscallDesc("semget", unimplementedFunc), 688 /* 191 */ SyscallDesc("semctl", unimplementedFunc), 689 /* 192 */ SyscallDesc("semtimedop", unimplementedFunc), 690 /* 193 */ SyscallDesc("semop", unimplementedFunc), 691 /* 194 */ SyscallDesc("shmget", unimplementedFunc), 692 /* 195 */ SyscallDesc("shmctl", unimplementedFunc), 693 /* 196 */ SyscallDesc("shmat", unimplementedFunc), 694 /* 197 */ SyscallDesc("shmdt", unimplementedFunc), 695 /* 198 */ SyscallDesc("socket", unimplementedFunc), 696 /* 199 */ SyscallDesc("socketpair", unimplementedFunc), 697 /* 200 */ SyscallDesc("bind", unimplementedFunc), 698 /* 201 */ SyscallDesc("listen", unimplementedFunc), 699 /* 202 */ SyscallDesc("accept", unimplementedFunc), 700 /* 203 */ SyscallDesc("connect", unimplementedFunc), 701 /* 204 */ SyscallDesc("getsockname", unimplementedFunc), 702 /* 205 */ SyscallDesc("getpeername", unimplementedFunc), 703 /* 206 */ SyscallDesc("sendto", unimplementedFunc), 704 /* 207 */ SyscallDesc("recvfrom", unimplementedFunc), 705 /* 208 */ SyscallDesc("setsockopt", unimplementedFunc), 706 /* 209 */ SyscallDesc("getsockopt", unimplementedFunc), 707 /* 210 */ SyscallDesc("shutdown", unimplementedFunc), 708 /* 211 */ SyscallDesc("sendmsg", unimplementedFunc), 709 /* 212 */ SyscallDesc("recvmsg", unimplementedFunc), 710 /* 213 */ SyscallDesc("readahead", unimplementedFunc), 711 /* 214 */ SyscallDesc("brk", brkFunc), 712 /* 215 */ SyscallDesc("munmap", munmapFunc), 713 /* 216 */ SyscallDesc("mremap", mremapFunc<ArmLinux64>), 714 /* 217 */ SyscallDesc("add_key", unimplementedFunc), 715 /* 218 */ SyscallDesc("request_key", unimplementedFunc), 716 /* 219 */ SyscallDesc("keyctl", unimplementedFunc), 717 /* 220 */ SyscallDesc("clone", cloneFunc<ArmLinux64>), 718 /* 221 */ SyscallDesc("execve", execveFunc<ArmLinux64>), 719 /* 222 */ SyscallDesc("mmap2", mmapFunc<ArmLinux64>), 720 /* 223 */ SyscallDesc("fadvise64_64", unimplementedFunc), 721 /* 224 */ SyscallDesc("swapon", unimplementedFunc), 722 /* 225 */ SyscallDesc("swapoff", unimplementedFunc), 723 /* 226 */ SyscallDesc("mprotect", ignoreFunc), 724 /* 227 */ SyscallDesc("msync", unimplementedFunc), 725 /* 228 */ SyscallDesc("mlock", unimplementedFunc), 726 /* 229 */ SyscallDesc("munlock", unimplementedFunc), 727 /* 230 */ SyscallDesc("mlockall", unimplementedFunc), 728 /* 231 */ SyscallDesc("munlockall", unimplementedFunc), 729 /* 232 */ SyscallDesc("mincore", unimplementedFunc), 730 /* 233 */ SyscallDesc("madvise", ignoreFunc), 731 /* 234 */ SyscallDesc("remap_file_pages", unimplementedFunc), 732 /* 235 */ SyscallDesc("mbind", unimplementedFunc), 733 /* 236 */ SyscallDesc("get_mempolicy", unimplementedFunc), 734 /* 237 */ SyscallDesc("set_mempolicy", unimplementedFunc), 735 /* 238 */ SyscallDesc("migrate_pages", unimplementedFunc), 736 /* 239 */ SyscallDesc("move_pages", unimplementedFunc), 737 /* 240 */ SyscallDesc("rt_tgsigqueueinfo", unimplementedFunc), 738 /* 241 */ SyscallDesc("perf_event_open", unimplementedFunc), 739 /* 242 */ SyscallDesc("accept4", unimplementedFunc), 740 /* 243 */ SyscallDesc("recvmmsg", unimplementedFunc), 741 /* 244 */ SyscallDesc("unused#244", unimplementedFunc), 742 /* 245 */ SyscallDesc("unused#245", unimplementedFunc), 743 /* 246 */ SyscallDesc("unused#246", unimplementedFunc), 744 /* 247 */ SyscallDesc("unused#247", unimplementedFunc), 745 /* 248 */ SyscallDesc("unused#248", unimplementedFunc), 746 /* 249 */ SyscallDesc("unused#249", unimplementedFunc), 747 /* 250 */ SyscallDesc("unused#250", unimplementedFunc), 748 /* 251 */ SyscallDesc("unused#251", unimplementedFunc), 749 /* 252 */ SyscallDesc("unused#252", unimplementedFunc), 750 /* 253 */ SyscallDesc("unused#253", unimplementedFunc), 751 /* 254 */ SyscallDesc("unused#254", unimplementedFunc), 752 /* 255 */ SyscallDesc("unused#255", unimplementedFunc), 753 /* 256 */ SyscallDesc("unused#256", unimplementedFunc), 754 /* 257 */ SyscallDesc("unused#257", unimplementedFunc), 755 /* 258 */ SyscallDesc("unused#258", unimplementedFunc), 756 /* 259 */ SyscallDesc("unused#259", unimplementedFunc), 757 /* 260 */ SyscallDesc("wait4", unimplementedFunc), 758 /* 261 */ SyscallDesc("prlimit64", prlimitFunc<ArmLinux64>), 759 /* 262 */ SyscallDesc("fanotify_init", unimplementedFunc), 760 /* 263 */ SyscallDesc("fanotify_mark", unimplementedFunc), 761 /* 264 */ SyscallDesc("name_to_handle_at", unimplementedFunc), 762 /* 265 */ SyscallDesc("open_by_handle_at", unimplementedFunc), 763 /* 266 */ SyscallDesc("clock_adjtime", unimplementedFunc), 764 /* 267 */ SyscallDesc("syncfs", unimplementedFunc), 765 /* 268 */ SyscallDesc("setns", unimplementedFunc), 766 /* 269 */ SyscallDesc("sendmmsg", unimplementedFunc), 767 /* 270 */ SyscallDesc("process_vm_readv", unimplementedFunc), 768 /* 271 */ SyscallDesc("process_vm_writev", unimplementedFunc), 769 /* 272 */ SyscallDesc("unused#272", unimplementedFunc), 770 /* 273 */ SyscallDesc("unused#273", unimplementedFunc), 771 /* 274 */ SyscallDesc("unused#274", unimplementedFunc), 772 /* 275 */ SyscallDesc("unused#275", unimplementedFunc), 773 /* 276 */ SyscallDesc("unused#276", unimplementedFunc), 774 /* 277 */ SyscallDesc("unused#277", unimplementedFunc), 775 /* 278 */ SyscallDesc("unused#278", unimplementedFunc), 776 /* 279 */ SyscallDesc("unused#279", unimplementedFunc), 777 /* 280 */ SyscallDesc("unused#280", unimplementedFunc), 778 /* 281 */ SyscallDesc("unused#281", unimplementedFunc), 779 /* 282 */ SyscallDesc("unused#282", unimplementedFunc), 780 /* 283 */ SyscallDesc("unused#283", unimplementedFunc), 781 /* 284 */ SyscallDesc("unused#284", unimplementedFunc), 782 /* 285 */ SyscallDesc("unused#285", unimplementedFunc), 783 /* 286 */ SyscallDesc("unused#286", unimplementedFunc), 784 /* 287 */ SyscallDesc("unused#287", unimplementedFunc), 785 /* 288 */ SyscallDesc("unused#288", unimplementedFunc), 786 /* 289 */ SyscallDesc("unused#289", unimplementedFunc), 787 /* 290 */ SyscallDesc("unused#290", unimplementedFunc), 788 /* 291 */ SyscallDesc("unused#291", unimplementedFunc), 789 /* 292 */ SyscallDesc("unused#292", unimplementedFunc), 790 /* 293 */ SyscallDesc("unused#293", unimplementedFunc), 791 /* 294 */ SyscallDesc("unused#294", unimplementedFunc), 792 /* 295 */ SyscallDesc("unused#295", unimplementedFunc), 793 /* 296 */ SyscallDesc("unused#296", unimplementedFunc), 794 /* 297 */ SyscallDesc("unused#297", unimplementedFunc), 795 /* 298 */ SyscallDesc("unused#298", unimplementedFunc), 796 /* 299 */ SyscallDesc("unused#299", unimplementedFunc), 797 /* 300 */ SyscallDesc("unused#300", unimplementedFunc), 798 /* 301 */ SyscallDesc("unused#301", unimplementedFunc), 799 /* 302 */ SyscallDesc("unused#302", unimplementedFunc), 800 /* 303 */ SyscallDesc("unused#303", unimplementedFunc), 801 /* 304 */ SyscallDesc("unused#304", unimplementedFunc), 802 /* 305 */ SyscallDesc("unused#305", unimplementedFunc), 803 /* 306 */ SyscallDesc("unused#306", unimplementedFunc), 804 /* 307 */ SyscallDesc("unused#307", unimplementedFunc), 805 /* 308 */ SyscallDesc("unused#308", unimplementedFunc), 806 /* 309 */ SyscallDesc("unused#309", unimplementedFunc), 807 /* 310 */ SyscallDesc("unused#310", unimplementedFunc), 808 /* 311 */ SyscallDesc("unused#311", unimplementedFunc), 809 /* 312 */ SyscallDesc("unused#312", unimplementedFunc), 810 /* 313 */ SyscallDesc("unused#313", unimplementedFunc), 811 /* 314 */ SyscallDesc("unused#314", unimplementedFunc), 812 /* 315 */ SyscallDesc("unused#315", unimplementedFunc), 813 /* 316 */ SyscallDesc("unused#316", unimplementedFunc), 814 /* 317 */ SyscallDesc("unused#317", unimplementedFunc), 815 /* 318 */ SyscallDesc("unused#318", unimplementedFunc), 816 /* 319 */ SyscallDesc("unused#319", unimplementedFunc), 817 /* 320 */ SyscallDesc("unused#320", unimplementedFunc), 818 /* 321 */ SyscallDesc("unused#321", unimplementedFunc), 819 /* 322 */ SyscallDesc("unused#322", unimplementedFunc), 820 /* 323 */ SyscallDesc("unused#323", unimplementedFunc), 821 /* 324 */ SyscallDesc("unused#324", unimplementedFunc), 822 /* 325 */ SyscallDesc("unused#325", unimplementedFunc), 823 /* 326 */ SyscallDesc("unused#326", unimplementedFunc), 824 /* 327 */ SyscallDesc("unused#327", unimplementedFunc), 825 /* 328 */ SyscallDesc("unused#328", unimplementedFunc), 826 /* 329 */ SyscallDesc("unused#329", unimplementedFunc), 827 /* 330 */ SyscallDesc("unused#330", unimplementedFunc), 828 /* 331 */ SyscallDesc("unused#331", unimplementedFunc), 829 /* 332 */ SyscallDesc("unused#332", unimplementedFunc), 830 /* 333 */ SyscallDesc("unused#333", unimplementedFunc), 831 /* 334 */ SyscallDesc("unused#334", unimplementedFunc), 832 /* 335 */ SyscallDesc("unused#335", unimplementedFunc), 833 /* 336 */ SyscallDesc("unused#336", unimplementedFunc), 834 /* 337 */ SyscallDesc("unused#337", unimplementedFunc), 835 /* 338 */ SyscallDesc("unused#338", unimplementedFunc), 836 /* 339 */ SyscallDesc("unused#339", unimplementedFunc), 837 /* 340 */ SyscallDesc("unused#340", unimplementedFunc), 838 /* 341 */ SyscallDesc("unused#341", unimplementedFunc), 839 /* 342 */ SyscallDesc("unused#342", unimplementedFunc), 840 /* 343 */ SyscallDesc("unused#343", unimplementedFunc), 841 /* 344 */ SyscallDesc("unused#344", unimplementedFunc), 842 /* 345 */ SyscallDesc("unused#345", unimplementedFunc), 843 /* 346 */ SyscallDesc("unused#346", unimplementedFunc), 844 /* 347 */ SyscallDesc("unused#347", unimplementedFunc), 845 /* 348 */ SyscallDesc("unused#348", unimplementedFunc), 846 /* 349 */ SyscallDesc("unused#349", unimplementedFunc), 847 /* 350 */ SyscallDesc("unused#350", unimplementedFunc), 848 /* 351 */ SyscallDesc("unused#351", unimplementedFunc), 849 /* 352 */ SyscallDesc("unused#352", unimplementedFunc), 850 /* 353 */ SyscallDesc("unused#353", unimplementedFunc), 851 /* 354 */ SyscallDesc("unused#354", unimplementedFunc), 852 /* 355 */ SyscallDesc("unused#355", unimplementedFunc), 853 /* 356 */ SyscallDesc("unused#356", unimplementedFunc), 854 /* 357 */ SyscallDesc("unused#357", unimplementedFunc), 855 /* 358 */ SyscallDesc("unused#358", unimplementedFunc), 856 /* 359 */ SyscallDesc("unused#359", unimplementedFunc), 857 /* 360 */ SyscallDesc("unused#360", unimplementedFunc), 858 /* 361 */ SyscallDesc("unused#361", unimplementedFunc), 859 /* 362 */ SyscallDesc("unused#362", unimplementedFunc), 860 /* 363 */ SyscallDesc("unused#363", unimplementedFunc), 861 /* 364 */ SyscallDesc("unused#364", unimplementedFunc), 862 /* 365 */ SyscallDesc("unused#365", unimplementedFunc), 863 /* 366 */ SyscallDesc("unused#366", unimplementedFunc), 864 /* 367 */ SyscallDesc("unused#367", unimplementedFunc), 865 /* 368 */ SyscallDesc("unused#368", unimplementedFunc), 866 /* 369 */ SyscallDesc("unused#369", unimplementedFunc), 867 /* 370 */ SyscallDesc("unused#370", unimplementedFunc), 868 /* 371 */ SyscallDesc("unused#371", unimplementedFunc), 869 /* 372 */ SyscallDesc("unused#372", unimplementedFunc), 870 /* 373 */ SyscallDesc("unused#373", unimplementedFunc), 871 /* 374 */ SyscallDesc("unused#374", unimplementedFunc), 872 /* 375 */ SyscallDesc("unused#375", unimplementedFunc), 873 /* 376 */ SyscallDesc("unused#376", unimplementedFunc), 874 /* 377 */ SyscallDesc("unused#377", unimplementedFunc), 875 /* 378 */ SyscallDesc("unused#378", unimplementedFunc), 876 /* 379 */ SyscallDesc("unused#379", unimplementedFunc), 877 /* 380 */ SyscallDesc("unused#380", unimplementedFunc), 878 /* 381 */ SyscallDesc("unused#381", unimplementedFunc), 879 /* 382 */ SyscallDesc("unused#382", unimplementedFunc), 880 /* 383 */ SyscallDesc("unused#383", unimplementedFunc), 881 /* 384 */ SyscallDesc("unused#384", unimplementedFunc), 882 /* 385 */ SyscallDesc("unused#385", unimplementedFunc), 883 /* 386 */ SyscallDesc("unused#386", unimplementedFunc), 884 /* 387 */ SyscallDesc("unused#387", unimplementedFunc), 885 /* 388 */ SyscallDesc("unused#388", unimplementedFunc), 886 /* 389 */ SyscallDesc("unused#389", unimplementedFunc), 887 /* 390 */ SyscallDesc("unused#390", unimplementedFunc), 888 /* 391 */ SyscallDesc("unused#391", unimplementedFunc), 889 /* 392 */ SyscallDesc("unused#392", unimplementedFunc), 890 /* 393 */ SyscallDesc("unused#393", unimplementedFunc), 891 /* 394 */ SyscallDesc("unused#394", unimplementedFunc), 892 /* 395 */ SyscallDesc("unused#395", unimplementedFunc), 893 /* 396 */ SyscallDesc("unused#396", unimplementedFunc), 894 /* 397 */ SyscallDesc("unused#397", unimplementedFunc), 895 /* 398 */ SyscallDesc("unused#398", unimplementedFunc), 896 /* 399 */ SyscallDesc("unused#399", unimplementedFunc), 897 /* 400 */ SyscallDesc("unused#400", unimplementedFunc), 898 /* 401 */ SyscallDesc("unused#401", unimplementedFunc), 899 /* 402 */ SyscallDesc("unused#402", unimplementedFunc), 900 /* 403 */ SyscallDesc("unused#403", unimplementedFunc), 901 /* 404 */ SyscallDesc("unused#404", unimplementedFunc), 902 /* 405 */ SyscallDesc("unused#405", unimplementedFunc), 903 /* 406 */ SyscallDesc("unused#406", unimplementedFunc), 904 /* 407 */ SyscallDesc("unused#407", unimplementedFunc), 905 /* 408 */ SyscallDesc("unused#408", unimplementedFunc), 906 /* 409 */ SyscallDesc("unused#409", unimplementedFunc), 907 /* 410 */ SyscallDesc("unused#410", unimplementedFunc), 908 /* 411 */ SyscallDesc("unused#411", unimplementedFunc), 909 /* 412 */ SyscallDesc("unused#412", unimplementedFunc), 910 /* 413 */ SyscallDesc("unused#413", unimplementedFunc), 911 /* 414 */ SyscallDesc("unused#414", unimplementedFunc), 912 /* 415 */ SyscallDesc("unused#415", unimplementedFunc), 913 /* 416 */ SyscallDesc("unused#416", unimplementedFunc), 914 /* 417 */ SyscallDesc("unused#417", unimplementedFunc), 915 /* 418 */ SyscallDesc("unused#418", unimplementedFunc), 916 /* 419 */ SyscallDesc("unused#419", unimplementedFunc), 917 /* 420 */ SyscallDesc("unused#420", unimplementedFunc), 918 /* 421 */ SyscallDesc("unused#421", unimplementedFunc), 919 /* 422 */ SyscallDesc("unused#422", unimplementedFunc), 920 /* 423 */ SyscallDesc("unused#423", unimplementedFunc), 921 /* 424 */ SyscallDesc("unused#424", unimplementedFunc), 922 /* 425 */ SyscallDesc("unused#425", unimplementedFunc), 923 /* 426 */ SyscallDesc("unused#426", unimplementedFunc), 924 /* 427 */ SyscallDesc("unused#427", unimplementedFunc), 925 /* 428 */ SyscallDesc("unused#428", unimplementedFunc), 926 /* 429 */ SyscallDesc("unused#429", unimplementedFunc), 927 /* 430 */ SyscallDesc("unused#430", unimplementedFunc), 928 /* 431 */ SyscallDesc("unused#431", unimplementedFunc), 929 /* 432 */ SyscallDesc("unused#432", unimplementedFunc), 930 /* 433 */ SyscallDesc("unused#433", unimplementedFunc), 931 /* 434 */ SyscallDesc("unused#434", unimplementedFunc), 932 /* 435 */ SyscallDesc("unused#435", unimplementedFunc), 933 /* 436 */ SyscallDesc("unused#436", unimplementedFunc), 934 /* 437 */ SyscallDesc("unused#437", unimplementedFunc), 935 /* 438 */ SyscallDesc("unused#438", unimplementedFunc), 936 /* 439 */ SyscallDesc("unused#439", unimplementedFunc), 937 /* 440 */ SyscallDesc("unused#440", unimplementedFunc), 938 /* 441 */ SyscallDesc("unused#441", unimplementedFunc), 939 /* 442 */ SyscallDesc("unused#442", unimplementedFunc), 940 /* 443 */ SyscallDesc("unused#443", unimplementedFunc), 941 /* 444 */ SyscallDesc("unused#444", unimplementedFunc), 942 /* 445 */ SyscallDesc("unused#445", unimplementedFunc), 943 /* 446 */ SyscallDesc("unused#446", unimplementedFunc), 944 /* 447 */ SyscallDesc("unused#447", unimplementedFunc), 945 /* 448 */ SyscallDesc("unused#448", unimplementedFunc), 946 /* 449 */ SyscallDesc("unused#449", unimplementedFunc), 947 /* 450 */ SyscallDesc("unused#450", unimplementedFunc), 948 /* 451 */ SyscallDesc("unused#451", unimplementedFunc), 949 /* 452 */ SyscallDesc("unused#452", unimplementedFunc), 950 /* 453 */ SyscallDesc("unused#453", unimplementedFunc), 951 /* 454 */ SyscallDesc("unused#454", unimplementedFunc), 952 /* 455 */ SyscallDesc("unused#455", unimplementedFunc), 953 /* 456 */ SyscallDesc("unused#456", unimplementedFunc), 954 /* 457 */ SyscallDesc("unused#457", unimplementedFunc), 955 /* 458 */ SyscallDesc("unused#458", unimplementedFunc), 956 /* 459 */ SyscallDesc("unused#459", unimplementedFunc), 957 /* 460 */ SyscallDesc("unused#460", unimplementedFunc), 958 /* 461 */ SyscallDesc("unused#461", unimplementedFunc), 959 /* 462 */ SyscallDesc("unused#462", unimplementedFunc), 960 /* 463 */ SyscallDesc("unused#463", unimplementedFunc), 961 /* 464 */ SyscallDesc("unused#464", unimplementedFunc), 962 /* 465 */ SyscallDesc("unused#465", unimplementedFunc), 963 /* 466 */ SyscallDesc("unused#466", unimplementedFunc), 964 /* 467 */ SyscallDesc("unused#467", unimplementedFunc), 965 /* 468 */ SyscallDesc("unused#468", unimplementedFunc), 966 /* 469 */ SyscallDesc("unused#469", unimplementedFunc), 967 /* 470 */ SyscallDesc("unused#470", unimplementedFunc), 968 /* 471 */ SyscallDesc("unused#471", unimplementedFunc), 969 /* 472 */ SyscallDesc("unused#472", unimplementedFunc), 970 /* 473 */ SyscallDesc("unused#473", unimplementedFunc), 971 /* 474 */ SyscallDesc("unused#474", unimplementedFunc), 972 /* 475 */ SyscallDesc("unused#475", unimplementedFunc), 973 /* 476 */ SyscallDesc("unused#476", unimplementedFunc), 974 /* 477 */ SyscallDesc("unused#477", unimplementedFunc), 975 /* 478 */ SyscallDesc("unused#478", unimplementedFunc), 976 /* 479 */ SyscallDesc("unused#479", unimplementedFunc), 977 /* 480 */ SyscallDesc("unused#480", unimplementedFunc), 978 /* 481 */ SyscallDesc("unused#481", unimplementedFunc), 979 /* 482 */ SyscallDesc("unused#482", unimplementedFunc), 980 /* 483 */ SyscallDesc("unused#483", unimplementedFunc), 981 /* 484 */ SyscallDesc("unused#484", unimplementedFunc), 982 /* 485 */ SyscallDesc("unused#485", unimplementedFunc), 983 /* 486 */ SyscallDesc("unused#486", unimplementedFunc), 984 /* 487 */ SyscallDesc("unused#487", unimplementedFunc), 985 /* 488 */ SyscallDesc("unused#488", unimplementedFunc), 986 /* 489 */ SyscallDesc("unused#489", unimplementedFunc), 987 /* 490 */ SyscallDesc("unused#490", unimplementedFunc), 988 /* 491 */ SyscallDesc("unused#491", unimplementedFunc), 989 /* 492 */ SyscallDesc("unused#492", unimplementedFunc), 990 /* 493 */ SyscallDesc("unused#493", unimplementedFunc), 991 /* 494 */ SyscallDesc("unused#494", unimplementedFunc), 992 /* 495 */ SyscallDesc("unused#495", unimplementedFunc), 993 /* 496 */ SyscallDesc("unused#496", unimplementedFunc), 994 /* 497 */ SyscallDesc("unused#497", unimplementedFunc), 995 /* 498 */ SyscallDesc("unused#498", unimplementedFunc), 996 /* 499 */ SyscallDesc("unused#499", unimplementedFunc), 997 /* 500 */ SyscallDesc("unused#500", unimplementedFunc), 998 /* 501 */ SyscallDesc("unused#501", unimplementedFunc), 999 /* 502 */ SyscallDesc("unused#502", unimplementedFunc), 1000 /* 503 */ SyscallDesc("unused#503", unimplementedFunc), 1001 /* 504 */ SyscallDesc("unused#504", unimplementedFunc), 1002 /* 505 */ SyscallDesc("unused#505", unimplementedFunc), 1003 /* 506 */ SyscallDesc("unused#506", unimplementedFunc), 1004 /* 507 */ SyscallDesc("unused#507", unimplementedFunc), 1005 /* 508 */ SyscallDesc("unused#508", unimplementedFunc), 1006 /* 509 */ SyscallDesc("unused#509", unimplementedFunc), 1007 /* 510 */ SyscallDesc("unused#510", unimplementedFunc), 1008 /* 511 */ SyscallDesc("unused#511", unimplementedFunc), 1009 /* 512 */ SyscallDesc("unused#512", unimplementedFunc), 1010 /* 513 */ SyscallDesc("unused#513", unimplementedFunc), 1011 /* 514 */ SyscallDesc("unused#514", unimplementedFunc), 1012 /* 515 */ SyscallDesc("unused#515", unimplementedFunc), 1013 /* 516 */ SyscallDesc("unused#516", unimplementedFunc), 1014 /* 517 */ SyscallDesc("unused#517", unimplementedFunc), 1015 /* 518 */ SyscallDesc("unused#518", unimplementedFunc), 1016 /* 519 */ SyscallDesc("unused#519", unimplementedFunc), 1017 /* 520 */ SyscallDesc("unused#520", unimplementedFunc), 1018 /* 521 */ SyscallDesc("unused#521", unimplementedFunc), 1019 /* 522 */ SyscallDesc("unused#522", unimplementedFunc), 1020 /* 523 */ SyscallDesc("unused#523", unimplementedFunc), 1021 /* 524 */ SyscallDesc("unused#524", unimplementedFunc), 1022 /* 525 */ SyscallDesc("unused#525", unimplementedFunc), 1023 /* 526 */ SyscallDesc("unused#526", unimplementedFunc), 1024 /* 527 */ SyscallDesc("unused#527", unimplementedFunc), 1025 /* 528 */ SyscallDesc("unused#528", unimplementedFunc), 1026 /* 529 */ SyscallDesc("unused#529", unimplementedFunc), 1027 /* 530 */ SyscallDesc("unused#530", unimplementedFunc), 1028 /* 531 */ SyscallDesc("unused#531", unimplementedFunc), 1029 /* 532 */ SyscallDesc("unused#532", unimplementedFunc), 1030 /* 533 */ SyscallDesc("unused#533", unimplementedFunc), 1031 /* 534 */ SyscallDesc("unused#534", unimplementedFunc), 1032 /* 535 */ SyscallDesc("unused#535", unimplementedFunc), 1033 /* 536 */ SyscallDesc("unused#536", unimplementedFunc), 1034 /* 537 */ SyscallDesc("unused#537", unimplementedFunc), 1035 /* 538 */ SyscallDesc("unused#538", unimplementedFunc), 1036 /* 539 */ SyscallDesc("unused#539", unimplementedFunc), 1037 /* 540 */ SyscallDesc("unused#540", unimplementedFunc), 1038 /* 541 */ SyscallDesc("unused#541", unimplementedFunc), 1039 /* 542 */ SyscallDesc("unused#542", unimplementedFunc), 1040 /* 543 */ SyscallDesc("unused#543", unimplementedFunc), 1041 /* 544 */ SyscallDesc("unused#544", unimplementedFunc), 1042 /* 545 */ SyscallDesc("unused#545", unimplementedFunc), 1043 /* 546 */ SyscallDesc("unused#546", unimplementedFunc), 1044 /* 547 */ SyscallDesc("unused#547", unimplementedFunc), 1045 /* 548 */ SyscallDesc("unused#548", unimplementedFunc), 1046 /* 549 */ SyscallDesc("unused#549", unimplementedFunc), 1047 /* 550 */ SyscallDesc("unused#550", unimplementedFunc), 1048 /* 551 */ SyscallDesc("unused#551", unimplementedFunc), 1049 /* 552 */ SyscallDesc("unused#552", unimplementedFunc), 1050 /* 553 */ SyscallDesc("unused#553", unimplementedFunc), 1051 /* 554 */ SyscallDesc("unused#554", unimplementedFunc), 1052 /* 555 */ SyscallDesc("unused#555", unimplementedFunc), 1053 /* 556 */ SyscallDesc("unused#556", unimplementedFunc), 1054 /* 557 */ SyscallDesc("unused#557", unimplementedFunc), 1055 /* 558 */ SyscallDesc("unused#558", unimplementedFunc), 1056 /* 559 */ SyscallDesc("unused#559", unimplementedFunc), 1057 /* 560 */ SyscallDesc("unused#560", unimplementedFunc), 1058 /* 561 */ SyscallDesc("unused#561", unimplementedFunc), 1059 /* 562 */ SyscallDesc("unused#562", unimplementedFunc), 1060 /* 563 */ SyscallDesc("unused#563", unimplementedFunc), 1061 /* 564 */ SyscallDesc("unused#564", unimplementedFunc), 1062 /* 565 */ SyscallDesc("unused#565", unimplementedFunc), 1063 /* 566 */ SyscallDesc("unused#566", unimplementedFunc), 1064 /* 567 */ SyscallDesc("unused#567", unimplementedFunc), 1065 /* 568 */ SyscallDesc("unused#568", unimplementedFunc), 1066 /* 569 */ SyscallDesc("unused#569", unimplementedFunc), 1067 /* 570 */ SyscallDesc("unused#570", unimplementedFunc), 1068 /* 571 */ SyscallDesc("unused#571", unimplementedFunc), 1069 /* 572 */ SyscallDesc("unused#572", unimplementedFunc), 1070 /* 573 */ SyscallDesc("unused#573", unimplementedFunc), 1071 /* 574 */ SyscallDesc("unused#574", unimplementedFunc), 1072 /* 575 */ SyscallDesc("unused#575", unimplementedFunc), 1073 /* 576 */ SyscallDesc("unused#576", unimplementedFunc), 1074 /* 577 */ SyscallDesc("unused#577", unimplementedFunc), 1075 /* 578 */ SyscallDesc("unused#578", unimplementedFunc), 1076 /* 579 */ SyscallDesc("unused#579", unimplementedFunc), 1077 /* 580 */ SyscallDesc("unused#580", unimplementedFunc), 1078 /* 581 */ SyscallDesc("unused#581", unimplementedFunc), 1079 /* 582 */ SyscallDesc("unused#582", unimplementedFunc), 1080 /* 583 */ SyscallDesc("unused#583", unimplementedFunc), 1081 /* 584 */ SyscallDesc("unused#584", unimplementedFunc), 1082 /* 585 */ SyscallDesc("unused#585", unimplementedFunc), 1083 /* 586 */ SyscallDesc("unused#586", unimplementedFunc), 1084 /* 587 */ SyscallDesc("unused#587", unimplementedFunc), 1085 /* 588 */ SyscallDesc("unused#588", unimplementedFunc), 1086 /* 589 */ SyscallDesc("unused#589", unimplementedFunc), 1087 /* 590 */ SyscallDesc("unused#590", unimplementedFunc), 1088 /* 591 */ SyscallDesc("unused#591", unimplementedFunc), 1089 /* 592 */ SyscallDesc("unused#592", unimplementedFunc), 1090 /* 593 */ SyscallDesc("unused#593", unimplementedFunc), 1091 /* 594 */ SyscallDesc("unused#594", unimplementedFunc), 1092 /* 595 */ SyscallDesc("unused#595", unimplementedFunc), 1093 /* 596 */ SyscallDesc("unused#596", unimplementedFunc), 1094 /* 597 */ SyscallDesc("unused#597", unimplementedFunc), 1095 /* 598 */ SyscallDesc("unused#598", unimplementedFunc), 1096 /* 599 */ SyscallDesc("unused#599", unimplementedFunc), 1097 /* 600 */ SyscallDesc("unused#600", unimplementedFunc), 1098 /* 601 */ SyscallDesc("unused#601", unimplementedFunc), 1099 /* 602 */ SyscallDesc("unused#602", unimplementedFunc), 1100 /* 603 */ SyscallDesc("unused#603", unimplementedFunc), 1101 /* 604 */ SyscallDesc("unused#604", unimplementedFunc), 1102 /* 605 */ SyscallDesc("unused#605", unimplementedFunc), 1103 /* 606 */ SyscallDesc("unused#606", unimplementedFunc), 1104 /* 607 */ SyscallDesc("unused#607", unimplementedFunc), 1105 /* 608 */ SyscallDesc("unused#608", unimplementedFunc), 1106 /* 609 */ SyscallDesc("unused#609", unimplementedFunc), 1107 /* 610 */ SyscallDesc("unused#610", unimplementedFunc), 1108 /* 611 */ SyscallDesc("unused#611", unimplementedFunc), 1109 /* 612 */ SyscallDesc("unused#612", unimplementedFunc), 1110 /* 613 */ SyscallDesc("unused#613", unimplementedFunc), 1111 /* 614 */ SyscallDesc("unused#614", unimplementedFunc), 1112 /* 615 */ SyscallDesc("unused#615", unimplementedFunc), 1113 /* 616 */ SyscallDesc("unused#616", unimplementedFunc), 1114 /* 617 */ SyscallDesc("unused#617", unimplementedFunc), 1115 /* 618 */ SyscallDesc("unused#618", unimplementedFunc), 1116 /* 619 */ SyscallDesc("unused#619", unimplementedFunc), 1117 /* 620 */ SyscallDesc("unused#620", unimplementedFunc), 1118 /* 621 */ SyscallDesc("unused#621", unimplementedFunc), 1119 /* 622 */ SyscallDesc("unused#622", unimplementedFunc), 1120 /* 623 */ SyscallDesc("unused#623", unimplementedFunc), 1121 /* 624 */ SyscallDesc("unused#624", unimplementedFunc), 1122 /* 625 */ SyscallDesc("unused#625", unimplementedFunc), 1123 /* 626 */ SyscallDesc("unused#626", unimplementedFunc), 1124 /* 627 */ SyscallDesc("unused#627", unimplementedFunc), 1125 /* 628 */ SyscallDesc("unused#628", unimplementedFunc), 1126 /* 629 */ SyscallDesc("unused#629", unimplementedFunc), 1127 /* 630 */ SyscallDesc("unused#630", unimplementedFunc), 1128 /* 631 */ SyscallDesc("unused#631", unimplementedFunc), 1129 /* 632 */ SyscallDesc("unused#632", unimplementedFunc), 1130 /* 633 */ SyscallDesc("unused#633", unimplementedFunc), 1131 /* 634 */ SyscallDesc("unused#634", unimplementedFunc), 1132 /* 635 */ SyscallDesc("unused#635", unimplementedFunc), 1133 /* 636 */ SyscallDesc("unused#636", unimplementedFunc), 1134 /* 637 */ SyscallDesc("unused#637", unimplementedFunc), 1135 /* 638 */ SyscallDesc("unused#638", unimplementedFunc), 1136 /* 639 */ SyscallDesc("unused#639", unimplementedFunc), 1137 /* 640 */ SyscallDesc("unused#640", unimplementedFunc), 1138 /* 641 */ SyscallDesc("unused#641", unimplementedFunc), 1139 /* 642 */ SyscallDesc("unused#642", unimplementedFunc), 1140 /* 643 */ SyscallDesc("unused#643", unimplementedFunc), 1141 /* 644 */ SyscallDesc("unused#644", unimplementedFunc), 1142 /* 645 */ SyscallDesc("unused#645", unimplementedFunc), 1143 /* 646 */ SyscallDesc("unused#646", unimplementedFunc), 1144 /* 647 */ SyscallDesc("unused#647", unimplementedFunc), 1145 /* 648 */ SyscallDesc("unused#648", unimplementedFunc), 1146 /* 649 */ SyscallDesc("unused#649", unimplementedFunc), 1147 /* 650 */ SyscallDesc("unused#650", unimplementedFunc), 1148 /* 651 */ SyscallDesc("unused#651", unimplementedFunc), 1149 /* 652 */ SyscallDesc("unused#652", unimplementedFunc), 1150 /* 653 */ SyscallDesc("unused#653", unimplementedFunc), 1151 /* 654 */ SyscallDesc("unused#654", unimplementedFunc), 1152 /* 655 */ SyscallDesc("unused#655", unimplementedFunc), 1153 /* 656 */ SyscallDesc("unused#656", unimplementedFunc), 1154 /* 657 */ SyscallDesc("unused#657", unimplementedFunc), 1155 /* 658 */ SyscallDesc("unused#658", unimplementedFunc), 1156 /* 659 */ SyscallDesc("unused#659", unimplementedFunc), 1157 /* 660 */ SyscallDesc("unused#660", unimplementedFunc), 1158 /* 661 */ SyscallDesc("unused#661", unimplementedFunc), 1159 /* 662 */ SyscallDesc("unused#662", unimplementedFunc), 1160 /* 663 */ SyscallDesc("unused#663", unimplementedFunc), 1161 /* 664 */ SyscallDesc("unused#664", unimplementedFunc), 1162 /* 665 */ SyscallDesc("unused#665", unimplementedFunc), 1163 /* 666 */ SyscallDesc("unused#666", unimplementedFunc), 1164 /* 667 */ SyscallDesc("unused#667", unimplementedFunc), 1165 /* 668 */ SyscallDesc("unused#668", unimplementedFunc), 1166 /* 669 */ SyscallDesc("unused#669", unimplementedFunc), 1167 /* 670 */ SyscallDesc("unused#670", unimplementedFunc), 1168 /* 671 */ SyscallDesc("unused#671", unimplementedFunc), 1169 /* 672 */ SyscallDesc("unused#672", unimplementedFunc), 1170 /* 673 */ SyscallDesc("unused#673", unimplementedFunc), 1171 /* 674 */ SyscallDesc("unused#674", unimplementedFunc), 1172 /* 675 */ SyscallDesc("unused#675", unimplementedFunc), 1173 /* 676 */ SyscallDesc("unused#676", unimplementedFunc), 1174 /* 677 */ SyscallDesc("unused#677", unimplementedFunc), 1175 /* 678 */ SyscallDesc("unused#678", unimplementedFunc), 1176 /* 679 */ SyscallDesc("unused#679", unimplementedFunc), 1177 /* 680 */ SyscallDesc("unused#680", unimplementedFunc), 1178 /* 681 */ SyscallDesc("unused#681", unimplementedFunc), 1179 /* 682 */ SyscallDesc("unused#682", unimplementedFunc), 1180 /* 683 */ SyscallDesc("unused#683", unimplementedFunc), 1181 /* 684 */ SyscallDesc("unused#684", unimplementedFunc), 1182 /* 685 */ SyscallDesc("unused#685", unimplementedFunc), 1183 /* 686 */ SyscallDesc("unused#686", unimplementedFunc), 1184 /* 687 */ SyscallDesc("unused#687", unimplementedFunc), 1185 /* 688 */ SyscallDesc("unused#688", unimplementedFunc), 1186 /* 689 */ SyscallDesc("unused#689", unimplementedFunc), 1187 /* 690 */ SyscallDesc("unused#690", unimplementedFunc), 1188 /* 691 */ SyscallDesc("unused#691", unimplementedFunc), 1189 /* 692 */ SyscallDesc("unused#692", unimplementedFunc), 1190 /* 693 */ SyscallDesc("unused#693", unimplementedFunc), 1191 /* 694 */ SyscallDesc("unused#694", unimplementedFunc), 1192 /* 695 */ SyscallDesc("unused#695", unimplementedFunc), 1193 /* 696 */ SyscallDesc("unused#696", unimplementedFunc), 1194 /* 697 */ SyscallDesc("unused#697", unimplementedFunc), 1195 /* 698 */ SyscallDesc("unused#698", unimplementedFunc), 1196 /* 699 */ SyscallDesc("unused#699", unimplementedFunc), 1197 /* 700 */ SyscallDesc("unused#700", unimplementedFunc), 1198 /* 701 */ SyscallDesc("unused#701", unimplementedFunc), 1199 /* 702 */ SyscallDesc("unused#702", unimplementedFunc), 1200 /* 703 */ SyscallDesc("unused#703", unimplementedFunc), 1201 /* 704 */ SyscallDesc("unused#704", unimplementedFunc), 1202 /* 705 */ SyscallDesc("unused#705", unimplementedFunc), 1203 /* 706 */ SyscallDesc("unused#706", unimplementedFunc), 1204 /* 707 */ SyscallDesc("unused#707", unimplementedFunc), 1205 /* 708 */ SyscallDesc("unused#708", unimplementedFunc), 1206 /* 709 */ SyscallDesc("unused#709", unimplementedFunc), 1207 /* 710 */ SyscallDesc("unused#710", unimplementedFunc), 1208 /* 711 */ SyscallDesc("unused#711", unimplementedFunc), 1209 /* 712 */ SyscallDesc("unused#712", unimplementedFunc), 1210 /* 713 */ SyscallDesc("unused#713", unimplementedFunc), 1211 /* 714 */ SyscallDesc("unused#714", unimplementedFunc), 1212 /* 715 */ SyscallDesc("unused#715", unimplementedFunc), 1213 /* 716 */ SyscallDesc("unused#716", unimplementedFunc), 1214 /* 717 */ SyscallDesc("unused#717", unimplementedFunc), 1215 /* 718 */ SyscallDesc("unused#718", unimplementedFunc), 1216 /* 719 */ SyscallDesc("unused#719", unimplementedFunc), 1217 /* 720 */ SyscallDesc("unused#720", unimplementedFunc), 1218 /* 721 */ SyscallDesc("unused#721", unimplementedFunc), 1219 /* 722 */ SyscallDesc("unused#722", unimplementedFunc), 1220 /* 723 */ SyscallDesc("unused#723", unimplementedFunc), 1221 /* 724 */ SyscallDesc("unused#724", unimplementedFunc), 1222 /* 725 */ SyscallDesc("unused#725", unimplementedFunc), 1223 /* 726 */ SyscallDesc("unused#726", unimplementedFunc), 1224 /* 727 */ SyscallDesc("unused#727", unimplementedFunc), 1225 /* 728 */ SyscallDesc("unused#728", unimplementedFunc), 1226 /* 729 */ SyscallDesc("unused#729", unimplementedFunc), 1227 /* 730 */ SyscallDesc("unused#730", unimplementedFunc), 1228 /* 731 */ SyscallDesc("unused#731", unimplementedFunc), 1229 /* 732 */ SyscallDesc("unused#732", unimplementedFunc), 1230 /* 733 */ SyscallDesc("unused#733", unimplementedFunc), 1231 /* 734 */ SyscallDesc("unused#734", unimplementedFunc), 1232 /* 735 */ SyscallDesc("unused#735", unimplementedFunc), 1233 /* 736 */ SyscallDesc("unused#736", unimplementedFunc), 1234 /* 737 */ SyscallDesc("unused#737", unimplementedFunc), 1235 /* 738 */ SyscallDesc("unused#738", unimplementedFunc), 1236 /* 739 */ SyscallDesc("unused#739", unimplementedFunc), 1237 /* 740 */ SyscallDesc("unused#740", unimplementedFunc), 1238 /* 741 */ SyscallDesc("unused#741", unimplementedFunc), 1239 /* 742 */ SyscallDesc("unused#742", unimplementedFunc), 1240 /* 743 */ SyscallDesc("unused#743", unimplementedFunc), 1241 /* 744 */ SyscallDesc("unused#744", unimplementedFunc), 1242 /* 745 */ SyscallDesc("unused#745", unimplementedFunc), 1243 /* 746 */ SyscallDesc("unused#746", unimplementedFunc), 1244 /* 747 */ SyscallDesc("unused#747", unimplementedFunc), 1245 /* 748 */ SyscallDesc("unused#748", unimplementedFunc), 1246 /* 749 */ SyscallDesc("unused#749", unimplementedFunc), 1247 /* 750 */ SyscallDesc("unused#750", unimplementedFunc), 1248 /* 751 */ SyscallDesc("unused#751", unimplementedFunc), 1249 /* 752 */ SyscallDesc("unused#752", unimplementedFunc), 1250 /* 753 */ SyscallDesc("unused#753", unimplementedFunc), 1251 /* 754 */ SyscallDesc("unused#754", unimplementedFunc), 1252 /* 755 */ SyscallDesc("unused#755", unimplementedFunc), 1253 /* 756 */ SyscallDesc("unused#756", unimplementedFunc), 1254 /* 757 */ SyscallDesc("unused#757", unimplementedFunc), 1255 /* 758 */ SyscallDesc("unused#758", unimplementedFunc), 1256 /* 759 */ SyscallDesc("unused#759", unimplementedFunc), 1257 /* 760 */ SyscallDesc("unused#760", unimplementedFunc), 1258 /* 761 */ SyscallDesc("unused#761", unimplementedFunc), 1259 /* 762 */ SyscallDesc("unused#762", unimplementedFunc), 1260 /* 763 */ SyscallDesc("unused#763", unimplementedFunc), 1261 /* 764 */ SyscallDesc("unused#764", unimplementedFunc), 1262 /* 765 */ SyscallDesc("unused#765", unimplementedFunc), 1263 /* 766 */ SyscallDesc("unused#766", unimplementedFunc), 1264 /* 767 */ SyscallDesc("unused#767", unimplementedFunc), 1265 /* 768 */ SyscallDesc("unused#768", unimplementedFunc), 1266 /* 769 */ SyscallDesc("unused#769", unimplementedFunc), 1267 /* 770 */ SyscallDesc("unused#770", unimplementedFunc), 1268 /* 771 */ SyscallDesc("unused#771", unimplementedFunc), 1269 /* 772 */ SyscallDesc("unused#772", unimplementedFunc), 1270 /* 773 */ SyscallDesc("unused#773", unimplementedFunc), 1271 /* 774 */ SyscallDesc("unused#774", unimplementedFunc), 1272 /* 775 */ SyscallDesc("unused#775", unimplementedFunc), 1273 /* 776 */ SyscallDesc("unused#776", unimplementedFunc), 1274 /* 777 */ SyscallDesc("unused#777", unimplementedFunc), 1275 /* 778 */ SyscallDesc("unused#778", unimplementedFunc), 1276 /* 779 */ SyscallDesc("unused#779", unimplementedFunc), 1277 /* 780 */ SyscallDesc("unused#780", unimplementedFunc), 1278 /* 781 */ SyscallDesc("unused#781", unimplementedFunc), 1279 /* 782 */ SyscallDesc("unused#782", unimplementedFunc), 1280 /* 783 */ SyscallDesc("unused#783", unimplementedFunc), 1281 /* 784 */ SyscallDesc("unused#784", unimplementedFunc), 1282 /* 785 */ SyscallDesc("unused#785", unimplementedFunc), 1283 /* 786 */ SyscallDesc("unused#786", unimplementedFunc), 1284 /* 787 */ SyscallDesc("unused#787", unimplementedFunc), 1285 /* 788 */ SyscallDesc("unused#788", unimplementedFunc), 1286 /* 789 */ SyscallDesc("unused#789", unimplementedFunc), 1287 /* 790 */ SyscallDesc("unused#790", unimplementedFunc), 1288 /* 791 */ SyscallDesc("unused#791", unimplementedFunc), 1289 /* 792 */ SyscallDesc("unused#792", unimplementedFunc), 1290 /* 793 */ SyscallDesc("unused#793", unimplementedFunc), 1291 /* 794 */ SyscallDesc("unused#794", unimplementedFunc), 1292 /* 795 */ SyscallDesc("unused#795", unimplementedFunc), 1293 /* 796 */ SyscallDesc("unused#796", unimplementedFunc), 1294 /* 797 */ SyscallDesc("unused#797", unimplementedFunc), 1295 /* 798 */ SyscallDesc("unused#798", unimplementedFunc), 1296 /* 799 */ SyscallDesc("unused#799", unimplementedFunc), 1297 /* 800 */ SyscallDesc("unused#800", unimplementedFunc), 1298 /* 801 */ SyscallDesc("unused#801", unimplementedFunc), 1299 /* 802 */ SyscallDesc("unused#802", unimplementedFunc), 1300 /* 803 */ SyscallDesc("unused#803", unimplementedFunc), 1301 /* 804 */ SyscallDesc("unused#804", unimplementedFunc), 1302 /* 805 */ SyscallDesc("unused#805", unimplementedFunc), 1303 /* 806 */ SyscallDesc("unused#806", unimplementedFunc), 1304 /* 807 */ SyscallDesc("unused#807", unimplementedFunc), 1305 /* 808 */ SyscallDesc("unused#808", unimplementedFunc), 1306 /* 809 */ SyscallDesc("unused#809", unimplementedFunc), 1307 /* 810 */ SyscallDesc("unused#810", unimplementedFunc), 1308 /* 811 */ SyscallDesc("unused#811", unimplementedFunc), 1309 /* 812 */ SyscallDesc("unused#812", unimplementedFunc), 1310 /* 813 */ SyscallDesc("unused#813", unimplementedFunc), 1311 /* 814 */ SyscallDesc("unused#814", unimplementedFunc), 1312 /* 815 */ SyscallDesc("unused#815", unimplementedFunc), 1313 /* 816 */ SyscallDesc("unused#816", unimplementedFunc), 1314 /* 817 */ SyscallDesc("unused#817", unimplementedFunc), 1315 /* 818 */ SyscallDesc("unused#818", unimplementedFunc), 1316 /* 819 */ SyscallDesc("unused#819", unimplementedFunc), 1317 /* 820 */ SyscallDesc("unused#820", unimplementedFunc), 1318 /* 821 */ SyscallDesc("unused#821", unimplementedFunc), 1319 /* 822 */ SyscallDesc("unused#822", unimplementedFunc), 1320 /* 823 */ SyscallDesc("unused#823", unimplementedFunc), 1321 /* 824 */ SyscallDesc("unused#824", unimplementedFunc), 1322 /* 825 */ SyscallDesc("unused#825", unimplementedFunc), 1323 /* 826 */ SyscallDesc("unused#826", unimplementedFunc), 1324 /* 827 */ SyscallDesc("unused#827", unimplementedFunc), 1325 /* 828 */ SyscallDesc("unused#828", unimplementedFunc), 1326 /* 829 */ SyscallDesc("unused#829", unimplementedFunc), 1327 /* 830 */ SyscallDesc("unused#830", unimplementedFunc), 1328 /* 831 */ SyscallDesc("unused#831", unimplementedFunc), 1329 /* 832 */ SyscallDesc("unused#832", unimplementedFunc), 1330 /* 833 */ SyscallDesc("unused#833", unimplementedFunc), 1331 /* 834 */ SyscallDesc("unused#834", unimplementedFunc), 1332 /* 835 */ SyscallDesc("unused#835", unimplementedFunc), 1333 /* 836 */ SyscallDesc("unused#836", unimplementedFunc), 1334 /* 837 */ SyscallDesc("unused#837", unimplementedFunc), 1335 /* 838 */ SyscallDesc("unused#838", unimplementedFunc), 1336 /* 839 */ SyscallDesc("unused#839", unimplementedFunc), 1337 /* 840 */ SyscallDesc("unused#840", unimplementedFunc), 1338 /* 841 */ SyscallDesc("unused#841", unimplementedFunc), 1339 /* 842 */ SyscallDesc("unused#842", unimplementedFunc), 1340 /* 843 */ SyscallDesc("unused#843", unimplementedFunc), 1341 /* 844 */ SyscallDesc("unused#844", unimplementedFunc), 1342 /* 845 */ SyscallDesc("unused#845", unimplementedFunc), 1343 /* 846 */ SyscallDesc("unused#846", unimplementedFunc), 1344 /* 847 */ SyscallDesc("unused#847", unimplementedFunc), 1345 /* 848 */ SyscallDesc("unused#848", unimplementedFunc), 1346 /* 849 */ SyscallDesc("unused#849", unimplementedFunc), 1347 /* 850 */ SyscallDesc("unused#850", unimplementedFunc), 1348 /* 851 */ SyscallDesc("unused#851", unimplementedFunc), 1349 /* 852 */ SyscallDesc("unused#852", unimplementedFunc), 1350 /* 853 */ SyscallDesc("unused#853", unimplementedFunc), 1351 /* 854 */ SyscallDesc("unused#854", unimplementedFunc), 1352 /* 855 */ SyscallDesc("unused#855", unimplementedFunc), 1353 /* 856 */ SyscallDesc("unused#856", unimplementedFunc), 1354 /* 857 */ SyscallDesc("unused#857", unimplementedFunc), 1355 /* 858 */ SyscallDesc("unused#858", unimplementedFunc), 1356 /* 859 */ SyscallDesc("unused#859", unimplementedFunc), 1357 /* 860 */ SyscallDesc("unused#860", unimplementedFunc), 1358 /* 861 */ SyscallDesc("unused#861", unimplementedFunc), 1359 /* 862 */ SyscallDesc("unused#862", unimplementedFunc), 1360 /* 863 */ SyscallDesc("unused#863", unimplementedFunc), 1361 /* 864 */ SyscallDesc("unused#864", unimplementedFunc), 1362 /* 865 */ SyscallDesc("unused#865", unimplementedFunc), 1363 /* 866 */ SyscallDesc("unused#866", unimplementedFunc), 1364 /* 867 */ SyscallDesc("unused#867", unimplementedFunc), 1365 /* 868 */ SyscallDesc("unused#868", unimplementedFunc), 1366 /* 869 */ SyscallDesc("unused#869", unimplementedFunc), 1367 /* 870 */ SyscallDesc("unused#870", unimplementedFunc), 1368 /* 871 */ SyscallDesc("unused#871", unimplementedFunc), 1369 /* 872 */ SyscallDesc("unused#872", unimplementedFunc), 1370 /* 873 */ SyscallDesc("unused#873", unimplementedFunc), 1371 /* 874 */ SyscallDesc("unused#874", unimplementedFunc), 1372 /* 875 */ SyscallDesc("unused#875", unimplementedFunc), 1373 /* 876 */ SyscallDesc("unused#876", unimplementedFunc), 1374 /* 877 */ SyscallDesc("unused#877", unimplementedFunc), 1375 /* 878 */ SyscallDesc("unused#878", unimplementedFunc), 1376 /* 879 */ SyscallDesc("unused#879", unimplementedFunc), 1377 /* 880 */ SyscallDesc("unused#880", unimplementedFunc), 1378 /* 881 */ SyscallDesc("unused#881", unimplementedFunc), 1379 /* 882 */ SyscallDesc("unused#882", unimplementedFunc), 1380 /* 883 */ SyscallDesc("unused#883", unimplementedFunc), 1381 /* 884 */ SyscallDesc("unused#884", unimplementedFunc), 1382 /* 885 */ SyscallDesc("unused#885", unimplementedFunc), 1383 /* 886 */ SyscallDesc("unused#886", unimplementedFunc), 1384 /* 887 */ SyscallDesc("unused#887", unimplementedFunc), 1385 /* 888 */ SyscallDesc("unused#888", unimplementedFunc), 1386 /* 889 */ SyscallDesc("unused#889", unimplementedFunc), 1387 /* 890 */ SyscallDesc("unused#890", unimplementedFunc), 1388 /* 891 */ SyscallDesc("unused#891", unimplementedFunc), 1389 /* 892 */ SyscallDesc("unused#892", unimplementedFunc), 1390 /* 893 */ SyscallDesc("unused#893", unimplementedFunc), 1391 /* 894 */ SyscallDesc("unused#894", unimplementedFunc), 1392 /* 895 */ SyscallDesc("unused#895", unimplementedFunc), 1393 /* 896 */ SyscallDesc("unused#896", unimplementedFunc), 1394 /* 897 */ SyscallDesc("unused#897", unimplementedFunc), 1395 /* 898 */ SyscallDesc("unused#898", unimplementedFunc), 1396 /* 899 */ SyscallDesc("unused#899", unimplementedFunc), 1397 /* 900 */ SyscallDesc("unused#900", unimplementedFunc), 1398 /* 901 */ SyscallDesc("unused#901", unimplementedFunc), 1399 /* 902 */ SyscallDesc("unused#902", unimplementedFunc), 1400 /* 903 */ SyscallDesc("unused#903", unimplementedFunc), 1401 /* 904 */ SyscallDesc("unused#904", unimplementedFunc), 1402 /* 905 */ SyscallDesc("unused#905", unimplementedFunc), 1403 /* 906 */ SyscallDesc("unused#906", unimplementedFunc), 1404 /* 907 */ SyscallDesc("unused#907", unimplementedFunc), 1405 /* 908 */ SyscallDesc("unused#908", unimplementedFunc), 1406 /* 909 */ SyscallDesc("unused#909", unimplementedFunc), 1407 /* 910 */ SyscallDesc("unused#910", unimplementedFunc), 1408 /* 911 */ SyscallDesc("unused#911", unimplementedFunc), 1409 /* 912 */ SyscallDesc("unused#912", unimplementedFunc), 1410 /* 913 */ SyscallDesc("unused#913", unimplementedFunc), 1411 /* 914 */ SyscallDesc("unused#914", unimplementedFunc), 1412 /* 915 */ SyscallDesc("unused#915", unimplementedFunc), 1413 /* 916 */ SyscallDesc("unused#916", unimplementedFunc), 1414 /* 917 */ SyscallDesc("unused#917", unimplementedFunc), 1415 /* 918 */ SyscallDesc("unused#918", unimplementedFunc), 1416 /* 919 */ SyscallDesc("unused#919", unimplementedFunc), 1417 /* 920 */ SyscallDesc("unused#920", unimplementedFunc), 1418 /* 921 */ SyscallDesc("unused#921", unimplementedFunc), 1419 /* 922 */ SyscallDesc("unused#922", unimplementedFunc), 1420 /* 923 */ SyscallDesc("unused#923", unimplementedFunc), 1421 /* 924 */ SyscallDesc("unused#924", unimplementedFunc), 1422 /* 925 */ SyscallDesc("unused#925", unimplementedFunc), 1423 /* 926 */ SyscallDesc("unused#926", unimplementedFunc), 1424 /* 927 */ SyscallDesc("unused#927", unimplementedFunc), 1425 /* 928 */ SyscallDesc("unused#928", unimplementedFunc), 1426 /* 929 */ SyscallDesc("unused#929", unimplementedFunc), 1427 /* 930 */ SyscallDesc("unused#930", unimplementedFunc), 1428 /* 931 */ SyscallDesc("unused#931", unimplementedFunc), 1429 /* 932 */ SyscallDesc("unused#932", unimplementedFunc), 1430 /* 933 */ SyscallDesc("unused#933", unimplementedFunc), 1431 /* 934 */ SyscallDesc("unused#934", unimplementedFunc), 1432 /* 935 */ SyscallDesc("unused#935", unimplementedFunc), 1433 /* 936 */ SyscallDesc("unused#936", unimplementedFunc), 1434 /* 937 */ SyscallDesc("unused#937", unimplementedFunc), 1435 /* 938 */ SyscallDesc("unused#938", unimplementedFunc), 1436 /* 939 */ SyscallDesc("unused#939", unimplementedFunc), 1437 /* 940 */ SyscallDesc("unused#940", unimplementedFunc), 1438 /* 941 */ SyscallDesc("unused#941", unimplementedFunc), 1439 /* 942 */ SyscallDesc("unused#942", unimplementedFunc), 1440 /* 943 */ SyscallDesc("unused#943", unimplementedFunc), 1441 /* 944 */ SyscallDesc("unused#944", unimplementedFunc), 1442 /* 945 */ SyscallDesc("unused#945", unimplementedFunc), 1443 /* 946 */ SyscallDesc("unused#946", unimplementedFunc), 1444 /* 947 */ SyscallDesc("unused#947", unimplementedFunc), 1445 /* 948 */ SyscallDesc("unused#948", unimplementedFunc), 1446 /* 949 */ SyscallDesc("unused#949", unimplementedFunc), 1447 /* 950 */ SyscallDesc("unused#950", unimplementedFunc), 1448 /* 951 */ SyscallDesc("unused#951", unimplementedFunc), 1449 /* 952 */ SyscallDesc("unused#952", unimplementedFunc), 1450 /* 953 */ SyscallDesc("unused#953", unimplementedFunc), 1451 /* 954 */ SyscallDesc("unused#954", unimplementedFunc), 1452 /* 955 */ SyscallDesc("unused#955", unimplementedFunc), 1453 /* 956 */ SyscallDesc("unused#956", unimplementedFunc), 1454 /* 957 */ SyscallDesc("unused#957", unimplementedFunc), 1455 /* 958 */ SyscallDesc("unused#958", unimplementedFunc), 1456 /* 959 */ SyscallDesc("unused#959", unimplementedFunc), 1457 /* 960 */ SyscallDesc("unused#960", unimplementedFunc), 1458 /* 961 */ SyscallDesc("unused#961", unimplementedFunc), 1459 /* 962 */ SyscallDesc("unused#962", unimplementedFunc), 1460 /* 963 */ SyscallDesc("unused#963", unimplementedFunc), 1461 /* 964 */ SyscallDesc("unused#964", unimplementedFunc), 1462 /* 965 */ SyscallDesc("unused#965", unimplementedFunc), 1463 /* 966 */ SyscallDesc("unused#966", unimplementedFunc), 1464 /* 967 */ SyscallDesc("unused#967", unimplementedFunc), 1465 /* 968 */ SyscallDesc("unused#968", unimplementedFunc), 1466 /* 969 */ SyscallDesc("unused#969", unimplementedFunc), 1467 /* 970 */ SyscallDesc("unused#970", unimplementedFunc), 1468 /* 971 */ SyscallDesc("unused#971", unimplementedFunc), 1469 /* 972 */ SyscallDesc("unused#972", unimplementedFunc), 1470 /* 973 */ SyscallDesc("unused#973", unimplementedFunc), 1471 /* 974 */ SyscallDesc("unused#974", unimplementedFunc), 1472 /* 975 */ SyscallDesc("unused#975", unimplementedFunc), 1473 /* 976 */ SyscallDesc("unused#976", unimplementedFunc), 1474 /* 977 */ SyscallDesc("unused#977", unimplementedFunc), 1475 /* 978 */ SyscallDesc("unused#978", unimplementedFunc), 1476 /* 979 */ SyscallDesc("unused#979", unimplementedFunc), 1477 /* 980 */ SyscallDesc("unused#980", unimplementedFunc), 1478 /* 981 */ SyscallDesc("unused#981", unimplementedFunc), 1479 /* 982 */ SyscallDesc("unused#982", unimplementedFunc), 1480 /* 983 */ SyscallDesc("unused#983", unimplementedFunc), 1481 /* 984 */ SyscallDesc("unused#984", unimplementedFunc), 1482 /* 985 */ SyscallDesc("unused#985", unimplementedFunc), 1483 /* 986 */ SyscallDesc("unused#986", unimplementedFunc), 1484 /* 987 */ SyscallDesc("unused#987", unimplementedFunc), 1485 /* 988 */ SyscallDesc("unused#988", unimplementedFunc), 1486 /* 989 */ SyscallDesc("unused#989", unimplementedFunc), 1487 /* 990 */ SyscallDesc("unused#990", unimplementedFunc), 1488 /* 991 */ SyscallDesc("unused#991", unimplementedFunc), 1489 /* 992 */ SyscallDesc("unused#992", unimplementedFunc), 1490 /* 993 */ SyscallDesc("unused#993", unimplementedFunc), 1491 /* 994 */ SyscallDesc("unused#994", unimplementedFunc), 1492 /* 995 */ SyscallDesc("unused#995", unimplementedFunc), 1493 /* 996 */ SyscallDesc("unused#996", unimplementedFunc), 1494 /* 997 */ SyscallDesc("unused#997", unimplementedFunc), 1495 /* 998 */ SyscallDesc("unused#998", unimplementedFunc), 1496 /* 999 */ SyscallDesc("unused#999", unimplementedFunc), 1497 /* 1000 */ SyscallDesc("unused#1000", unimplementedFunc), 1498 /* 1001 */ SyscallDesc("unused#1001", unimplementedFunc), 1499 /* 1002 */ SyscallDesc("unused#1002", unimplementedFunc), 1500 /* 1003 */ SyscallDesc("unused#1003", unimplementedFunc), 1501 /* 1004 */ SyscallDesc("unused#1004", unimplementedFunc), 1502 /* 1005 */ SyscallDesc("unused#1005", unimplementedFunc), 1503 /* 1006 */ SyscallDesc("unused#1006", unimplementedFunc), 1504 /* 1007 */ SyscallDesc("unused#1007", unimplementedFunc), 1505 /* 1008 */ SyscallDesc("unused#1008", unimplementedFunc), 1506 /* 1009 */ SyscallDesc("unused#1009", unimplementedFunc), 1507 /* 1010 */ SyscallDesc("unused#1010", unimplementedFunc), 1508 /* 1011 */ SyscallDesc("unused#1011", unimplementedFunc), 1509 /* 1012 */ SyscallDesc("unused#1012", unimplementedFunc), 1510 /* 1013 */ SyscallDesc("unused#1013", unimplementedFunc), 1511 /* 1014 */ SyscallDesc("unused#1014", unimplementedFunc), 1512 /* 1015 */ SyscallDesc("unused#1015", unimplementedFunc), 1513 /* 1016 */ SyscallDesc("unused#1016", unimplementedFunc), 1514 /* 1017 */ SyscallDesc("unused#1017", unimplementedFunc), 1515 /* 1018 */ SyscallDesc("unused#1018", unimplementedFunc), 1516 /* 1019 */ SyscallDesc("unused#1019", unimplementedFunc), 1517 /* 1020 */ SyscallDesc("unused#1020", unimplementedFunc), 1518 /* 1021 */ SyscallDesc("unused#1021", unimplementedFunc), 1519 /* 1022 */ SyscallDesc("unused#1022", unimplementedFunc), 1520 /* 1023 */ SyscallDesc("unused#1023", unimplementedFunc), 1521 /* 1024 */ SyscallDesc("open", openFunc<ArmLinux64>), 1522 /* 1025 */ SyscallDesc("link", unimplementedFunc), 1523 /* 1026 */ SyscallDesc("unlink", unlinkFunc), 1524 /* 1027 */ SyscallDesc("mknod", unimplementedFunc), 1525 /* 1028 */ SyscallDesc("chmod", chmodFunc<ArmLinux64>), 1526 /* 1029 */ SyscallDesc("chown", unimplementedFunc), 1527 /* 1030 */ SyscallDesc("mkdir", mkdirFunc), 1528 /* 1031 */ SyscallDesc("rmdir", unimplementedFunc), 1529 /* 1032 */ SyscallDesc("lchown", unimplementedFunc), 1530 /* 1033 */ SyscallDesc("access", accessFunc), 1531 /* 1034 */ SyscallDesc("rename", renameFunc), 1532 /* 1035 */ SyscallDesc("readlink", readlinkFunc), 1533 /* 1036 */ SyscallDesc("symlink", unimplementedFunc), 1534 /* 1037 */ SyscallDesc("utimes", unimplementedFunc), 1535 /* 1038 */ SyscallDesc("stat64", stat64Func<ArmLinux64>), 1536 /* 1039 */ SyscallDesc("lstat64", lstat64Func<ArmLinux64>), 1537 /* 1040 */ SyscallDesc("pipe", pipePseudoFunc), 1538 /* 1041 */ SyscallDesc("dup2", unimplementedFunc), 1539 /* 1042 */ SyscallDesc("epoll_create", unimplementedFunc), 1540 /* 1043 */ SyscallDesc("inotify_init", unimplementedFunc), 1541 /* 1044 */ SyscallDesc("eventfd", unimplementedFunc), 1542 /* 1045 */ SyscallDesc("signalfd", unimplementedFunc), 1543 /* 1046 */ SyscallDesc("sendfile", unimplementedFunc), 1544 /* 1047 */ SyscallDesc("ftruncate", ftruncateFunc), 1545 /* 1048 */ SyscallDesc("truncate", truncateFunc), 1546 /* 1049 */ SyscallDesc("stat", statFunc<ArmLinux64>), 1547 /* 1050 */ SyscallDesc("lstat", unimplementedFunc), 1548 /* 1051 */ SyscallDesc("fstat", fstatFunc<ArmLinux64>), 1549 /* 1052 */ SyscallDesc("fcntl", fcntlFunc), 1550 /* 1053 */ SyscallDesc("fadvise64", unimplementedFunc), 1551 /* 1054 */ SyscallDesc("newfstatat", unimplementedFunc), 1552 /* 1055 */ SyscallDesc("fstatfs", unimplementedFunc), 1553 /* 1056 */ SyscallDesc("statfs", unimplementedFunc), 1554 /* 1057 */ SyscallDesc("lseek", lseekFunc), 1555 /* 1058 */ SyscallDesc("mmap", mmapFunc<ArmLinux64>), 1556 /* 1059 */ SyscallDesc("alarm", unimplementedFunc), 1557 /* 1060 */ SyscallDesc("getpgrp", unimplementedFunc), 1558 /* 1061 */ SyscallDesc("pause", unimplementedFunc), 1559 /* 1062 */ SyscallDesc("time", timeFunc<ArmLinux64>), 1560 /* 1063 */ SyscallDesc("utime", unimplementedFunc), 1561 /* 1064 */ SyscallDesc("creat", unimplementedFunc), 1562#if defined(SYS_getdents) 1563 /* 1065 */ SyscallDesc("getdents", getdentsFunc), 1564#else 1565 /* 1065 */ SyscallDesc("getdents", unimplementedFunc), 1566#endif 1567 /* 1066 */ SyscallDesc("futimesat", unimplementedFunc), 1568 /* 1067 */ SyscallDesc("select", unimplementedFunc), 1569 /* 1068 */ SyscallDesc("poll", unimplementedFunc), 1570 /* 1069 */ SyscallDesc("epoll_wait", unimplementedFunc), 1571 /* 1070 */ SyscallDesc("ustat", unimplementedFunc), 1572 /* 1071 */ SyscallDesc("vfork", unimplementedFunc), 1573 /* 1072 */ SyscallDesc("oldwait4", unimplementedFunc), 1574 /* 1073 */ SyscallDesc("recv", unimplementedFunc), 1575 /* 1074 */ SyscallDesc("send", unimplementedFunc), 1576 /* 1075 */ SyscallDesc("bdflush", unimplementedFunc), 1577 /* 1076 */ SyscallDesc("umount", unimplementedFunc), 1578 /* 1077 */ SyscallDesc("uselib", unimplementedFunc), 1579 /* 1078 */ SyscallDesc("_sysctl", unimplementedFunc), 1580 /* 1079 */ SyscallDesc("fork", unimplementedFunc) 1581}; 1582 1583static SyscallDesc privSyscallDescs32[] = { 1584 /* 1 */ SyscallDesc("breakpoint", unimplementedFunc), 1585 /* 2 */ SyscallDesc("cacheflush", unimplementedFunc), 1586 /* 3 */ SyscallDesc("usr26", unimplementedFunc), 1587 /* 4 */ SyscallDesc("usr32", unimplementedFunc), 1588 /* 5 */ SyscallDesc("set_tls", setTLSFunc32) 1589}; 1590 1591// Indices 1, 3 and 4 are unallocated. 1592static SyscallDesc privSyscallDescs64[] = { 1593 /* 1 */ SyscallDesc("unallocated", unimplementedFunc), 1594 /* 2 */ SyscallDesc("cacheflush", unimplementedFunc), 1595 /* 3 */ SyscallDesc("unallocated", unimplementedFunc), 1596 /* 4 */ SyscallDesc("unallocated", unimplementedFunc), 1597 /* 5 */ SyscallDesc("set_tls", setTLSFunc64) 1598}; 1599 1600ArmLinuxProcess32::ArmLinuxProcess32(ProcessParams * params, 1601 ObjectFile *objFile, ObjectFile::Arch _arch) 1602 : ArmProcess32(params, objFile, _arch) 1603{ 1604 SyscallTable table; 1605 1606 table.descs = syscallDescs32; 1607 table.size = sizeof(syscallDescs32) / sizeof(SyscallDesc); 1608 table.base = 0; 1609 syscallTables.push_back(table); 1610 table.base = 0x900000; 1611 syscallTables.push_back(table); 1612 1613 table.descs = privSyscallDescs32; 1614 table.size = sizeof(privSyscallDescs32) / sizeof(SyscallDesc); 1615 table.base = 0xf0001; 1616 syscallTables.push_back(table); 1617} 1618 1619ArmLinuxProcess64::ArmLinuxProcess64(ProcessParams * params, 1620 ObjectFile *objFile, ObjectFile::Arch _arch) 1621 : ArmProcess64(params, objFile, _arch) 1622{ 1623 SyscallTable table; 1624 1625 table.descs = syscallDescs64; 1626 table.size = sizeof(syscallDescs64) / sizeof(SyscallDesc); 1627 table.base = 0; 1628 syscallTables.push_back(table); 1629 table.base = 0x900000; 1630 syscallTables.push_back(table); 1631 1632 table.descs = privSyscallDescs64; 1633 table.size = sizeof(privSyscallDescs64) / sizeof(SyscallDesc); 1634 table.base = 0x1001; 1635 syscallTables.push_back(table); 1636} 1637 1638const Addr ArmLinuxProcess32::commPage = 0xffff0000; 1639 1640SyscallDesc* 1641ArmLinuxProcessBits::getLinuxDesc(int callnum) 1642{ 1643 // Angel SWI syscalls are unsupported in this release 1644 if (callnum == 0x123456) 1645 panic("Attempt to execute an ANGEL_SWI system call (newlib-related)"); 1646 for (unsigned i = 0; i < syscallTables.size(); i++) { 1647 SyscallDesc *desc = syscallTables[i].getDesc(callnum); 1648 if (desc) 1649 return desc; 1650 } 1651 return NULL; 1652} 1653 1654SyscallDesc * 1655ArmLinuxProcessBits::SyscallTable::getDesc(int callnum) const 1656{ 1657 int offset = callnum - base; 1658 if (offset < 0 || offset >= size) 1659 return NULL; 1660 return &descs[offset]; 1661} 1662 1663SyscallDesc* 1664ArmLinuxProcess32::getDesc(int callnum) 1665{ 1666 return getLinuxDesc(callnum); 1667} 1668 1669SyscallDesc* 1670ArmLinuxProcess64::getDesc(int callnum) 1671{ 1672 return getLinuxDesc(callnum); 1673} 1674 1675void 1676ArmLinuxProcess32::initState() 1677{ 1678 ArmProcess32::initState(); 1679 allocateMem(commPage, PageBytes); 1680 ThreadContext *tc = system->getThreadContext(contextIds[0]); 1681 1682 uint8_t swiNeg1[] = { 1683 0xff, 0xff, 0xff, 0xef // swi -1 1684 }; 1685 1686 // Fill this page with swi -1 so we'll no if we land in it somewhere. 1687 for (Addr addr = 0; addr < PageBytes; addr += sizeof(swiNeg1)) { 1688 tc->getMemProxy().writeBlob(commPage + addr, 1689 swiNeg1, sizeof(swiNeg1)); 1690 } 1691 1692 uint8_t memory_barrier[] = 1693 { 1694 0x5f, 0xf0, 0x7f, 0xf5, // dmb 1695 0x0e, 0xf0, 0xa0, 0xe1 // return 1696 }; 1697 tc->getMemProxy().writeBlob(commPage + 0x0fa0, memory_barrier, 1698 sizeof(memory_barrier)); 1699 1700 uint8_t cmpxchg[] = 1701 { 1702 0x9f, 0x3f, 0x92, 0xe1, // ldrex r3, [r2] 1703 0x00, 0x30, 0x53, 0xe0, // subs r3, r3, r0 1704 0x91, 0x3f, 0x82, 0x01, // strexeq r3, r1, [r2] 1705 0x01, 0x00, 0x33, 0x03, // teqeq r3, #1 1706 0xfa, 0xff, 0xff, 0x0a, // beq 1b 1707 0x00, 0x00, 0x73, 0xe2, // rsbs r0, r3, #0 1708 0x5f, 0xf0, 0x7f, 0xf5, // dmb 1709 0x0e, 0xf0, 0xa0, 0xe1 // return 1710 }; 1711 tc->getMemProxy().writeBlob(commPage + 0x0fc0, cmpxchg, sizeof(cmpxchg)); 1712 1713 uint8_t get_tls[] = 1714 { 1715 // read user read-only thread id register 1716 0x70, 0x0f, 0x1d, 0xee, // mrc p15, 0, r0, c13, c0, 3 1717 0x0e, 0xf0, 0xa0, 0xe1 // return 1718 }; 1719 tc->getMemProxy().writeBlob(commPage + 0x0fe0, get_tls, sizeof(get_tls)); 1720} 1721 1722void 1723ArmLinuxProcess64::initState() 1724{ 1725 ArmProcess64::initState(); 1726 // The 64 bit equivalent of the comm page would be set up here. 1727} 1728