process.cc revision 5569:baeee670d4ce
12330SN/A/* 213610Sgiacomo.gabrielli@arm.com * Copyright (c) 2003-2005 The Regents of The University of Michigan 39920Syasuko.eckert@amd.com * All rights reserved. 48733Sgeoffrey.blake@arm.com * 58733Sgeoffrey.blake@arm.com * Redistribution and use in source and binary forms, with or without 68733Sgeoffrey.blake@arm.com * modification, are permitted provided that the following conditions are 78733Sgeoffrey.blake@arm.com * met: redistributions of source code must retain the above copyright 88733Sgeoffrey.blake@arm.com * notice, this list of conditions and the following disclaimer; 98733Sgeoffrey.blake@arm.com * redistributions in binary form must reproduce the above copyright 108733Sgeoffrey.blake@arm.com * notice, this list of conditions and the following disclaimer in the 118733Sgeoffrey.blake@arm.com * documentation and/or other materials provided with the distribution; 128733Sgeoffrey.blake@arm.com * neither the name of the copyright holders nor the names of its 138733Sgeoffrey.blake@arm.com * contributors may be used to endorse or promote products derived from 148733Sgeoffrey.blake@arm.com * this software without specific prior written permission. 152330SN/A * 162330SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172330SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182330SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192330SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202330SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212330SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222330SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232330SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242330SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252330SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262330SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272330SN/A * 282330SN/A * Authors: Steve Reinhardt 292330SN/A * Ali Saidi 302330SN/A */ 312330SN/A 322330SN/A#include "arch/alpha/linux/linux.hh" 332330SN/A#include "arch/alpha/linux/process.hh" 342330SN/A#include "arch/alpha/isa_traits.hh" 352330SN/A 362330SN/A#include "base/trace.hh" 372330SN/A#include "cpu/thread_context.hh" 382330SN/A#include "kern/linux/linux.hh" 392330SN/A 402689Sktlim@umich.edu#include "sim/process.hh" 412689Sktlim@umich.edu#include "sim/syscall_emul.hh" 422330SN/A 432330SN/Ausing namespace std; 442683Sktlim@umich.eduusing namespace AlphaISA; 452683Sktlim@umich.edu 462315SN/A/// Target uname() handler. 472972Sgblack@eecs.umich.edustatic SyscallReturn 486658Snate@binkert.orgunameFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 492315SN/A ThreadContext *tc) 502683Sktlim@umich.edu{ 512680SN/A TypedBufferArg<Linux::utsname> name(tc->getSyscallArg(0)); 528733Sgeoffrey.blake@arm.com 532315SN/A strcpy(name->sysname, "Linux"); 542315SN/A strcpy(name->nodename, "m5.eecs.umich.edu"); 5513905Sgabeblack@google.com strcpy(name->release, "2.4.20"); 5613905Sgabeblack@google.com strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003"); 5713905Sgabeblack@google.com strcpy(name->machine, "alpha"); 583548Sgblack@eecs.umich.edu 599020Sgblack@eecs.umich.edu name.copyOut(tc->getMemPort()); 602330SN/A return 0; 612315SN/A} 622350SN/A 632680SN/A/// Target osf_getsysyinfo() handler. Even though this call is 642680SN/A/// borrowed from Tru64, the subcases that get used appear to be 652683Sktlim@umich.edu/// different in practice from those used by Tru64 processes. 662683Sktlim@umich.edustatic SyscallReturn 672683Sktlim@umich.eduosf_getsysinfoFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 682683Sktlim@umich.edu ThreadContext *tc) 692350SN/A{ 702680SN/A unsigned op = tc->getSyscallArg(0); 712680SN/A // unsigned nbytes = tc->getSyscallArg(2); 722315SN/A 732315SN/A switch (op) { 742680SN/A 752683Sktlim@umich.edu case 45: { // GSI_IEEE_FP_CONTROL 762683Sktlim@umich.edu TypedBufferArg<uint64_t> fpcr(tc->getSyscallArg(1)); 772330SN/A // I don't think this exactly matches the HW FPCR 782315SN/A *fpcr = 0; 792315SN/A fpcr.copyOut(tc->getMemPort()); 802315SN/A return 0; 812683Sktlim@umich.edu } 822683Sktlim@umich.edu 832680SN/A default: 842683Sktlim@umich.edu cerr << "osf_getsysinfo: unknown op " << op << endl; 852683Sktlim@umich.edu abort(); 862683Sktlim@umich.edu break; 872683Sktlim@umich.edu } 882683Sktlim@umich.edu 892315SN/A return 1; 902315SN/A} 912315SN/A 922315SN/A/// Target osf_setsysinfo() handler. 9313628SAndrea.Mondelli@ucf.edustatic SyscallReturn 942315SN/Aosf_setsysinfoFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 9513628SAndrea.Mondelli@ucf.edu ThreadContext *tc) 9610190Sakash.bagdia@arm.com{ 9713628SAndrea.Mondelli@ucf.edu unsigned op = tc->getSyscallArg(0); 988733Sgeoffrey.blake@arm.com // unsigned nbytes = tc->getSyscallArg(2); 9913628SAndrea.Mondelli@ucf.edu 1008733Sgeoffrey.blake@arm.com switch (op) { 10113865Sgabeblack@google.com 10213865Sgabeblack@google.com case 14: { // SSI_IEEE_FP_CONTROL 1032315SN/A TypedBufferArg<uint64_t> fpcr(tc->getSyscallArg(1)); 1048733Sgeoffrey.blake@arm.com // I don't think this exactly matches the HW FPCR 1058733Sgeoffrey.blake@arm.com fpcr.copyIn(tc->getMemPort()); 1062315SN/A DPRINTFR(SyscallVerbose, "osf_setsysinfo(SSI_IEEE_FP_CONTROL): " 1072315SN/A " setting FPCR to 0x%x\n", gtoh(*(uint64_t*)fpcr)); 1088733Sgeoffrey.blake@arm.com return 0; 10913628SAndrea.Mondelli@ucf.edu } 11013865Sgabeblack@google.com 11113865Sgabeblack@google.com default: 1128733Sgeoffrey.blake@arm.com cerr << "osf_setsysinfo: unknown op " << op << endl; 1138733Sgeoffrey.blake@arm.com abort(); 1148733Sgeoffrey.blake@arm.com break; 1158733Sgeoffrey.blake@arm.com } 1162315SN/A 11713628SAndrea.Mondelli@ucf.edu return 1; 1184997Sgblack@eecs.umich.edu} 11913628SAndrea.Mondelli@ucf.edu 1204997Sgblack@eecs.umich.edu 12113865Sgabeblack@google.comSyscallDesc AlphaLinuxProcess::syscallDescs[] = { 12213865Sgabeblack@google.com /* 0 */ SyscallDesc("osf_syscall", unimplementedFunc), 1238887Sgeoffrey.blake@arm.com /* 1 */ SyscallDesc("exit", exitFunc), 1248887Sgeoffrey.blake@arm.com /* 2 */ SyscallDesc("fork", unimplementedFunc), 1258887Sgeoffrey.blake@arm.com /* 3 */ SyscallDesc("read", readFunc), 1268733Sgeoffrey.blake@arm.com /* 4 */ SyscallDesc("write", writeFunc), 12713693Sgiacomo.gabrielli@arm.com /* 5 */ SyscallDesc("osf_old_open", unimplementedFunc), 12813693Sgiacomo.gabrielli@arm.com /* 6 */ SyscallDesc("close", closeFunc), 12913865Sgabeblack@google.com /* 7 */ SyscallDesc("osf_wait4", unimplementedFunc), 13013865Sgabeblack@google.com /* 8 */ SyscallDesc("osf_old_creat", unimplementedFunc), 13113865Sgabeblack@google.com /* 9 */ SyscallDesc("link", unimplementedFunc), 13213628SAndrea.Mondelli@ucf.edu /* 10 */ SyscallDesc("unlink", unlinkFunc), 13313628SAndrea.Mondelli@ucf.edu /* 11 */ SyscallDesc("osf_execve", unimplementedFunc), 1348733Sgeoffrey.blake@arm.com /* 12 */ SyscallDesc("chdir", unimplementedFunc), 13513628SAndrea.Mondelli@ucf.edu /* 13 */ SyscallDesc("fchdir", unimplementedFunc), 1362315SN/A /* 14 */ SyscallDesc("mknod", unimplementedFunc), 13713905Sgabeblack@google.com /* 15 */ SyscallDesc("chmod", chmodFunc<AlphaLinux>), 13813865Sgabeblack@google.com /* 16 */ SyscallDesc("chown", chownFunc), 13913865Sgabeblack@google.com /* 17 */ SyscallDesc("brk", obreakFunc), 14013865Sgabeblack@google.com /* 18 */ SyscallDesc("osf_getfsstat", unimplementedFunc), 14113865Sgabeblack@google.com /* 19 */ SyscallDesc("lseek", lseekFunc), 1422690Sktlim@umich.edu /* 20 */ SyscallDesc("getxpid", getpidPseudoFunc), 14313628SAndrea.Mondelli@ucf.edu /* 21 */ SyscallDesc("osf_mount", unimplementedFunc), 1447679Sgblack@eecs.umich.edu /* 22 */ SyscallDesc("umount", unimplementedFunc), 14513628SAndrea.Mondelli@ucf.edu /* 23 */ SyscallDesc("setuid", setuidFunc), 14611886Sbrandon.potter@amd.com /* 24 */ SyscallDesc("getxuid", getuidPseudoFunc), 14713628SAndrea.Mondelli@ucf.edu /* 25 */ SyscallDesc("exec_with_loader", unimplementedFunc), 1482690Sktlim@umich.edu /* 26 */ SyscallDesc("osf_ptrace", unimplementedFunc), 14913865Sgabeblack@google.com /* 27 */ SyscallDesc("osf_nrecvmsg", unimplementedFunc), 15013865Sgabeblack@google.com /* 28 */ SyscallDesc("osf_nsendmsg", unimplementedFunc), 15113865Sgabeblack@google.com /* 29 */ SyscallDesc("osf_nrecvfrom", unimplementedFunc), 15213865Sgabeblack@google.com /* 30 */ SyscallDesc("osf_naccept", unimplementedFunc), 15313865Sgabeblack@google.com /* 31 */ SyscallDesc("osf_ngetpeername", unimplementedFunc), 1548733Sgeoffrey.blake@arm.com /* 32 */ SyscallDesc("osf_ngetsockname", unimplementedFunc), 15513865Sgabeblack@google.com /* 33 */ SyscallDesc("access", unimplementedFunc), 15613865Sgabeblack@google.com /* 34 */ SyscallDesc("osf_chflags", unimplementedFunc), 15713865Sgabeblack@google.com /* 35 */ SyscallDesc("osf_fchflags", unimplementedFunc), 15813865Sgabeblack@google.com /* 36 */ SyscallDesc("sync", unimplementedFunc), 15913865Sgabeblack@google.com /* 37 */ SyscallDesc("kill", unimplementedFunc), 1608733Sgeoffrey.blake@arm.com /* 38 */ SyscallDesc("osf_old_stat", unimplementedFunc), 16113865Sgabeblack@google.com /* 39 */ SyscallDesc("setpgid", unimplementedFunc), 16213865Sgabeblack@google.com /* 40 */ SyscallDesc("osf_old_lstat", unimplementedFunc), 1638733Sgeoffrey.blake@arm.com /* 41 */ SyscallDesc("dup", dupFunc), 1648733Sgeoffrey.blake@arm.com /* 42 */ SyscallDesc("pipe", pipePseudoFunc), 1658733Sgeoffrey.blake@arm.com /* 43 */ SyscallDesc("osf_set_program_attributes", unimplementedFunc), 1668809Sgblack@eecs.umich.edu /* 44 */ SyscallDesc("osf_profil", unimplementedFunc), 16713865Sgabeblack@google.com /* 45 */ SyscallDesc("open", openFunc<AlphaLinux>), 16813865Sgabeblack@google.com /* 46 */ SyscallDesc("osf_old_sigaction", unimplementedFunc), 16913865Sgabeblack@google.com /* 47 */ SyscallDesc("getxgid", getgidPseudoFunc), 17013628SAndrea.Mondelli@ucf.edu /* 48 */ SyscallDesc("osf_sigprocmask", ignoreFunc), 17113628SAndrea.Mondelli@ucf.edu /* 49 */ SyscallDesc("osf_getlogin", unimplementedFunc), 1722690Sktlim@umich.edu /* 50 */ SyscallDesc("osf_setlogin", unimplementedFunc), 1738733Sgeoffrey.blake@arm.com /* 51 */ SyscallDesc("acct", unimplementedFunc), 17413865Sgabeblack@google.com /* 52 */ SyscallDesc("sigpending", unimplementedFunc), 17513865Sgabeblack@google.com /* 53 */ SyscallDesc("osf_classcntl", unimplementedFunc), 17613865Sgabeblack@google.com /* 54 */ SyscallDesc("ioctl", ioctlFunc<AlphaLinux>), 17713865Sgabeblack@google.com /* 55 */ SyscallDesc("osf_reboot", unimplementedFunc), 17813865Sgabeblack@google.com /* 56 */ SyscallDesc("osf_revoke", unimplementedFunc), 1792315SN/A /* 57 */ SyscallDesc("symlink", unimplementedFunc), 18013628SAndrea.Mondelli@ucf.edu /* 58 */ SyscallDesc("readlink", readlinkFunc), 1812315SN/A /* 59 */ SyscallDesc("execve", unimplementedFunc), 18213865Sgabeblack@google.com /* 60 */ SyscallDesc("umask", umaskFunc), 18313865Sgabeblack@google.com /* 61 */ SyscallDesc("chroot", unimplementedFunc), 1842330SN/A /* 62 */ SyscallDesc("osf_old_fstat", unimplementedFunc), 1852680SN/A /* 63 */ SyscallDesc("getpgrp", unimplementedFunc), 1862680SN/A /* 64 */ SyscallDesc("getpagesize", getpagesizeFunc), 1872330SN/A /* 65 */ SyscallDesc("osf_mremap", unimplementedFunc), 1882315SN/A /* 66 */ SyscallDesc("vfork", unimplementedFunc), 18910407Smitch.hayenga@arm.com /* 67 */ SyscallDesc("stat", statFunc<AlphaLinux>), 19013628SAndrea.Mondelli@ucf.edu /* 68 */ SyscallDesc("lstat", lstatFunc<AlphaLinux>), 1912315SN/A /* 69 */ SyscallDesc("osf_sbrk", unimplementedFunc), 1922315SN/A /* 70 */ SyscallDesc("osf_sstk", unimplementedFunc), 19313865Sgabeblack@google.com /* 71 */ SyscallDesc("mmap", mmapFunc<AlphaLinux>), 1942315SN/A /* 72 */ SyscallDesc("osf_old_vadvise", unimplementedFunc), 1952315SN/A /* 73 */ SyscallDesc("munmap", munmapFunc), 19613865Sgabeblack@google.com /* 74 */ SyscallDesc("mprotect", ignoreFunc), 1972315SN/A /* 75 */ SyscallDesc("madvise", unimplementedFunc), 19813865Sgabeblack@google.com /* 76 */ SyscallDesc("vhangup", unimplementedFunc), 1992315SN/A /* 77 */ SyscallDesc("osf_kmodcall", unimplementedFunc), 20013865Sgabeblack@google.com /* 78 */ SyscallDesc("osf_mincore", unimplementedFunc), 20113865Sgabeblack@google.com /* 79 */ SyscallDesc("getgroups", unimplementedFunc), 2022315SN/A /* 80 */ SyscallDesc("setgroups", unimplementedFunc), 2032680SN/A /* 81 */ SyscallDesc("osf_old_getpgrp", unimplementedFunc), 2043225Sktlim@umich.edu /* 82 */ SyscallDesc("setpgrp", unimplementedFunc), 2052315SN/A /* 83 */ SyscallDesc("osf_setitimer", unimplementedFunc), 2062315SN/A /* 84 */ SyscallDesc("osf_old_wait", unimplementedFunc), 20713865Sgabeblack@google.com /* 85 */ SyscallDesc("osf_table", unimplementedFunc), 20813865Sgabeblack@google.com /* 86 */ SyscallDesc("osf_getitimer", unimplementedFunc), 2098733Sgeoffrey.blake@arm.com /* 87 */ SyscallDesc("gethostname", gethostnameFunc), 2108733Sgeoffrey.blake@arm.com /* 88 */ SyscallDesc("sethostname", unimplementedFunc), 2118733Sgeoffrey.blake@arm.com /* 89 */ SyscallDesc("getdtablesize", unimplementedFunc), 2128733Sgeoffrey.blake@arm.com /* 90 */ SyscallDesc("dup2", unimplementedFunc), 2132315SN/A /* 91 */ SyscallDesc("fstat", fstatFunc<AlphaLinux>), 21413865Sgabeblack@google.com /* 92 */ SyscallDesc("fcntl", fcntlFunc), 21513865Sgabeblack@google.com /* 93 */ SyscallDesc("osf_select", unimplementedFunc), 21613865Sgabeblack@google.com /* 94 */ SyscallDesc("poll", unimplementedFunc), 21713628SAndrea.Mondelli@ucf.edu /* 95 */ SyscallDesc("fsync", unimplementedFunc), 21813628SAndrea.Mondelli@ucf.edu /* 96 */ SyscallDesc("setpriority", unimplementedFunc), 2192315SN/A /* 97 */ SyscallDesc("socket", unimplementedFunc), 22013865Sgabeblack@google.com /* 98 */ SyscallDesc("connect", unimplementedFunc), 22113865Sgabeblack@google.com /* 99 */ SyscallDesc("accept", unimplementedFunc), 2222315SN/A /* 100 */ SyscallDesc("getpriority", unimplementedFunc), 22313865Sgabeblack@google.com /* 101 */ SyscallDesc("send", unimplementedFunc), 22413865Sgabeblack@google.com /* 102 */ SyscallDesc("recv", unimplementedFunc), 2252315SN/A /* 103 */ SyscallDesc("sigreturn", unimplementedFunc), 2262315SN/A /* 104 */ SyscallDesc("bind", unimplementedFunc), 22713865Sgabeblack@google.com /* 105 */ SyscallDesc("setsockopt", unimplementedFunc), 22813865Sgabeblack@google.com /* 106 */ SyscallDesc("listen", unimplementedFunc), 2292315SN/A /* 107 */ SyscallDesc("osf_plock", unimplementedFunc), 2302680SN/A /* 108 */ SyscallDesc("osf_old_sigvec", unimplementedFunc), 2312680SN/A /* 109 */ SyscallDesc("osf_old_sigblock", unimplementedFunc), 2322315SN/A /* 110 */ SyscallDesc("osf_old_sigsetmask", unimplementedFunc), 2332315SN/A /* 111 */ SyscallDesc("sigsuspend", unimplementedFunc), 23413865Sgabeblack@google.com /* 112 */ SyscallDesc("osf_sigstack", ignoreFunc), 23513865Sgabeblack@google.com /* 113 */ SyscallDesc("recvmsg", unimplementedFunc), 2362315SN/A /* 114 */ SyscallDesc("sendmsg", unimplementedFunc), 2372680SN/A /* 115 */ SyscallDesc("osf_old_vtrace", unimplementedFunc), 2382680SN/A /* 116 */ SyscallDesc("osf_gettimeofday", unimplementedFunc), 2392315SN/A /* 117 */ SyscallDesc("osf_getrusage", unimplementedFunc), 2402315SN/A /* 118 */ SyscallDesc("getsockopt", unimplementedFunc), 2412315SN/A /* 119 */ SyscallDesc("numa_syscalls", unimplementedFunc), 2422315SN/A /* 120 */ SyscallDesc("readv", unimplementedFunc), 2432315SN/A /* 121 */ SyscallDesc("writev", writevFunc<AlphaLinux>), 24413865Sgabeblack@google.com /* 122 */ SyscallDesc("osf_settimeofday", unimplementedFunc), 24513865Sgabeblack@google.com /* 123 */ SyscallDesc("fchown", fchownFunc), 24613865Sgabeblack@google.com /* 124 */ SyscallDesc("fchmod", fchmodFunc<AlphaLinux>), 24713628SAndrea.Mondelli@ucf.edu /* 125 */ SyscallDesc("recvfrom", unimplementedFunc), 24813628SAndrea.Mondelli@ucf.edu /* 126 */ SyscallDesc("setreuid", unimplementedFunc), 2492315SN/A /* 127 */ SyscallDesc("setregid", unimplementedFunc), 25013557Sgabeblack@google.com /* 128 */ SyscallDesc("rename", renameFunc), 25113865Sgabeblack@google.com /* 129 */ SyscallDesc("truncate", truncateFunc), 25213557Sgabeblack@google.com /* 130 */ SyscallDesc("ftruncate", ftruncateFunc), 25313611Sgabeblack@google.com /* 131 */ SyscallDesc("flock", unimplementedFunc), 25413557Sgabeblack@google.com /* 132 */ SyscallDesc("setgid", unimplementedFunc), 2552315SN/A /* 133 */ SyscallDesc("sendto", unimplementedFunc), 25613865Sgabeblack@google.com /* 134 */ SyscallDesc("shutdown", unimplementedFunc), 25713865Sgabeblack@google.com /* 135 */ SyscallDesc("socketpair", unimplementedFunc), 25813865Sgabeblack@google.com /* 136 */ SyscallDesc("mkdir", mkdirFunc), 25913865Sgabeblack@google.com /* 137 */ SyscallDesc("rmdir", unimplementedFunc), 26013865Sgabeblack@google.com /* 138 */ SyscallDesc("osf_utimes", unimplementedFunc), 26112109SRekai.GonzalezAlberquilla@arm.com /* 139 */ SyscallDesc("osf_old_sigreturn", unimplementedFunc), 26212109SRekai.GonzalezAlberquilla@arm.com /* 140 */ SyscallDesc("osf_adjtime", unimplementedFunc), 26312109SRekai.GonzalezAlberquilla@arm.com /* 141 */ SyscallDesc("getpeername", unimplementedFunc), 26412109SRekai.GonzalezAlberquilla@arm.com /* 142 */ SyscallDesc("osf_gethostid", unimplementedFunc), 26513865Sgabeblack@google.com /* 143 */ SyscallDesc("osf_sethostid", unimplementedFunc), 26613865Sgabeblack@google.com /* 144 */ SyscallDesc("getrlimit", getrlimitFunc<AlphaLinux>), 26713865Sgabeblack@google.com /* 145 */ SyscallDesc("setrlimit", ignoreFunc), 26813865Sgabeblack@google.com /* 146 */ SyscallDesc("osf_old_killpg", unimplementedFunc), 26913865Sgabeblack@google.com /* 147 */ SyscallDesc("setsid", unimplementedFunc), 27012109SRekai.GonzalezAlberquilla@arm.com /* 148 */ SyscallDesc("quotactl", unimplementedFunc), 27112109SRekai.GonzalezAlberquilla@arm.com /* 149 */ SyscallDesc("osf_oldquota", unimplementedFunc), 27212109SRekai.GonzalezAlberquilla@arm.com /* 150 */ SyscallDesc("getsockname", unimplementedFunc), 27312109SRekai.GonzalezAlberquilla@arm.com /* 151 */ SyscallDesc("osf_pread", unimplementedFunc), 27412109SRekai.GonzalezAlberquilla@arm.com /* 152 */ SyscallDesc("osf_pwrite", unimplementedFunc), 27513865Sgabeblack@google.com /* 153 */ SyscallDesc("osf_pid_block", unimplementedFunc), 27613865Sgabeblack@google.com /* 154 */ SyscallDesc("osf_pid_unblock", unimplementedFunc), 27713865Sgabeblack@google.com /* 155 */ SyscallDesc("osf_signal_urti", unimplementedFunc), 27813865Sgabeblack@google.com /* 156 */ SyscallDesc("sigaction", ignoreFunc), 27912109SRekai.GonzalezAlberquilla@arm.com /* 157 */ SyscallDesc("osf_sigwaitprim", unimplementedFunc), 28012109SRekai.GonzalezAlberquilla@arm.com /* 158 */ SyscallDesc("osf_nfssvc", unimplementedFunc), 28112109SRekai.GonzalezAlberquilla@arm.com /* 159 */ SyscallDesc("osf_getdirentries", unimplementedFunc), 28213865Sgabeblack@google.com /* 160 */ SyscallDesc("osf_statfs", unimplementedFunc), 28313865Sgabeblack@google.com /* 161 */ SyscallDesc("osf_fstatfs", unimplementedFunc), 28413865Sgabeblack@google.com /* 162 */ SyscallDesc("unknown #162", unimplementedFunc), 28513865Sgabeblack@google.com /* 163 */ SyscallDesc("osf_async_daemon", unimplementedFunc), 28612109SRekai.GonzalezAlberquilla@arm.com /* 164 */ SyscallDesc("osf_getfh", unimplementedFunc), 28712109SRekai.GonzalezAlberquilla@arm.com /* 165 */ SyscallDesc("osf_getdomainname", unimplementedFunc), 28812109SRekai.GonzalezAlberquilla@arm.com /* 166 */ SyscallDesc("setdomainname", unimplementedFunc), 28913865Sgabeblack@google.com /* 167 */ SyscallDesc("unknown #167", unimplementedFunc), 29013865Sgabeblack@google.com /* 168 */ SyscallDesc("unknown #168", unimplementedFunc), 29113865Sgabeblack@google.com /* 169 */ SyscallDesc("osf_exportfs", unimplementedFunc), 29213865Sgabeblack@google.com /* 170 */ SyscallDesc("unknown #170", unimplementedFunc), 29312109SRekai.GonzalezAlberquilla@arm.com /* 171 */ SyscallDesc("unknown #171", unimplementedFunc), 29412109SRekai.GonzalezAlberquilla@arm.com /* 172 */ SyscallDesc("unknown #172", unimplementedFunc), 29512109SRekai.GonzalezAlberquilla@arm.com /* 173 */ SyscallDesc("unknown #173", unimplementedFunc), 29613865Sgabeblack@google.com /* 174 */ SyscallDesc("unknown #174", unimplementedFunc), 29713865Sgabeblack@google.com /* 175 */ SyscallDesc("unknown #175", unimplementedFunc), 29813865Sgabeblack@google.com /* 176 */ SyscallDesc("unknown #176", unimplementedFunc), 29913865Sgabeblack@google.com /* 177 */ SyscallDesc("unknown #177", unimplementedFunc), 30012109SRekai.GonzalezAlberquilla@arm.com /* 178 */ SyscallDesc("unknown #178", unimplementedFunc), 30112109SRekai.GonzalezAlberquilla@arm.com /* 179 */ SyscallDesc("unknown #179", unimplementedFunc), 30213865Sgabeblack@google.com /* 180 */ SyscallDesc("unknown #180", unimplementedFunc), 30313865Sgabeblack@google.com /* 181 */ SyscallDesc("osf_alt_plock", unimplementedFunc), 30413865Sgabeblack@google.com /* 182 */ SyscallDesc("unknown #182", unimplementedFunc), 30513865Sgabeblack@google.com /* 183 */ SyscallDesc("unknown #183", unimplementedFunc), 30613865Sgabeblack@google.com /* 184 */ SyscallDesc("osf_getmnt", unimplementedFunc), 30713865Sgabeblack@google.com /* 185 */ SyscallDesc("unknown #185", unimplementedFunc), 30813865Sgabeblack@google.com /* 186 */ SyscallDesc("unknown #186", unimplementedFunc), 30913865Sgabeblack@google.com /* 187 */ SyscallDesc("osf_alt_sigpending", unimplementedFunc), 31013865Sgabeblack@google.com /* 188 */ SyscallDesc("osf_alt_setsid", unimplementedFunc), 31113865Sgabeblack@google.com /* 189 */ SyscallDesc("unknown #189", unimplementedFunc), 31213865Sgabeblack@google.com /* 190 */ SyscallDesc("unknown #190", unimplementedFunc), 31313865Sgabeblack@google.com /* 191 */ SyscallDesc("unknown #191", unimplementedFunc), 31413865Sgabeblack@google.com /* 192 */ SyscallDesc("unknown #192", unimplementedFunc), 31513865Sgabeblack@google.com /* 193 */ SyscallDesc("unknown #193", unimplementedFunc), 31613865Sgabeblack@google.com /* 194 */ SyscallDesc("unknown #194", unimplementedFunc), 31713865Sgabeblack@google.com /* 195 */ SyscallDesc("unknown #195", unimplementedFunc), 31813865Sgabeblack@google.com /* 196 */ SyscallDesc("unknown #196", unimplementedFunc), 31913865Sgabeblack@google.com /* 197 */ SyscallDesc("unknown #197", unimplementedFunc), 32013865Sgabeblack@google.com /* 198 */ SyscallDesc("unknown #198", unimplementedFunc), 32113865Sgabeblack@google.com /* 199 */ SyscallDesc("osf_swapon", unimplementedFunc), 32213865Sgabeblack@google.com /* 200 */ SyscallDesc("msgctl", unimplementedFunc), 32313865Sgabeblack@google.com /* 201 */ SyscallDesc("msgget", unimplementedFunc), 32413865Sgabeblack@google.com /* 202 */ SyscallDesc("msgrcv", unimplementedFunc), 32513865Sgabeblack@google.com /* 203 */ SyscallDesc("msgsnd", unimplementedFunc), 32612109SRekai.GonzalezAlberquilla@arm.com /* 204 */ SyscallDesc("semctl", unimplementedFunc), 32712109SRekai.GonzalezAlberquilla@arm.com /* 205 */ SyscallDesc("semget", unimplementedFunc), 32813865Sgabeblack@google.com /* 206 */ SyscallDesc("semop", unimplementedFunc), 32913865Sgabeblack@google.com /* 207 */ SyscallDesc("osf_utsname", unimplementedFunc), 33013865Sgabeblack@google.com /* 208 */ SyscallDesc("lchown", unimplementedFunc), 33113865Sgabeblack@google.com /* 209 */ SyscallDesc("osf_shmat", unimplementedFunc), 33213865Sgabeblack@google.com /* 210 */ SyscallDesc("shmctl", unimplementedFunc), 33312109SRekai.GonzalezAlberquilla@arm.com /* 211 */ SyscallDesc("shmdt", unimplementedFunc), 33413865Sgabeblack@google.com /* 212 */ SyscallDesc("shmget", unimplementedFunc), 33513865Sgabeblack@google.com /* 213 */ SyscallDesc("osf_mvalid", unimplementedFunc), 33613865Sgabeblack@google.com /* 214 */ SyscallDesc("osf_getaddressconf", unimplementedFunc), 33713865Sgabeblack@google.com /* 215 */ SyscallDesc("osf_msleep", unimplementedFunc), 33813865Sgabeblack@google.com /* 216 */ SyscallDesc("osf_mwakeup", unimplementedFunc), 33913610Sgiacomo.gabrielli@arm.com /* 217 */ SyscallDesc("msync", unimplementedFunc), 34013865Sgabeblack@google.com /* 218 */ SyscallDesc("osf_signal", unimplementedFunc), 34113865Sgabeblack@google.com /* 219 */ SyscallDesc("osf_utc_gettime", unimplementedFunc), 34213865Sgabeblack@google.com /* 220 */ SyscallDesc("osf_utc_adjtime", unimplementedFunc), 34313865Sgabeblack@google.com /* 221 */ SyscallDesc("unknown #221", unimplementedFunc), 34413865Sgabeblack@google.com /* 222 */ SyscallDesc("osf_security", unimplementedFunc), 34513610Sgiacomo.gabrielli@arm.com /* 223 */ SyscallDesc("osf_kloadcall", unimplementedFunc), 34613865Sgabeblack@google.com /* 224 */ SyscallDesc("unknown #224", unimplementedFunc), 34713865Sgabeblack@google.com /* 225 */ SyscallDesc("unknown #225", unimplementedFunc), 34813865Sgabeblack@google.com /* 226 */ SyscallDesc("unknown #226", unimplementedFunc), 34913865Sgabeblack@google.com /* 227 */ SyscallDesc("unknown #227", unimplementedFunc), 35013865Sgabeblack@google.com /* 228 */ SyscallDesc("unknown #228", unimplementedFunc), 3519920Syasuko.eckert@amd.com /* 229 */ SyscallDesc("unknown #229", unimplementedFunc), 35213557Sgabeblack@google.com /* 230 */ SyscallDesc("unknown #230", unimplementedFunc), 35313865Sgabeblack@google.com /* 231 */ SyscallDesc("unknown #231", unimplementedFunc), 3542315SN/A /* 232 */ SyscallDesc("unknown #232", unimplementedFunc), 3552680SN/A /* 233 */ SyscallDesc("getpgid", unimplementedFunc), 3562680SN/A /* 234 */ SyscallDesc("getsid", unimplementedFunc), 3572315SN/A /* 235 */ SyscallDesc("sigaltstack", ignoreFunc), 3582315SN/A /* 236 */ SyscallDesc("osf_waitid", unimplementedFunc), 35913557Sgabeblack@google.com /* 237 */ SyscallDesc("osf_priocntlset", unimplementedFunc), 36013865Sgabeblack@google.com /* 238 */ SyscallDesc("osf_sigsendset", unimplementedFunc), 3612669SN/A /* 239 */ SyscallDesc("osf_set_speculative", unimplementedFunc), 36213611Sgabeblack@google.com /* 240 */ SyscallDesc("osf_msfs_syscall", unimplementedFunc), 36313611Sgabeblack@google.com /* 241 */ SyscallDesc("osf_sysinfo", unimplementedFunc), 3642315SN/A /* 242 */ SyscallDesc("osf_uadmin", unimplementedFunc), 3652315SN/A /* 243 */ SyscallDesc("osf_fuser", unimplementedFunc), 36613557Sgabeblack@google.com /* 244 */ SyscallDesc("osf_proplist_syscall", unimplementedFunc), 36713628SAndrea.Mondelli@ucf.edu /* 245 */ SyscallDesc("osf_ntp_adjtime", unimplementedFunc), 36812109SRekai.GonzalezAlberquilla@arm.com /* 246 */ SyscallDesc("osf_ntp_gettime", unimplementedFunc), 36912109SRekai.GonzalezAlberquilla@arm.com /* 247 */ SyscallDesc("osf_pathconf", unimplementedFunc), 37012109SRekai.GonzalezAlberquilla@arm.com /* 248 */ SyscallDesc("osf_fpathconf", unimplementedFunc), 37112109SRekai.GonzalezAlberquilla@arm.com /* 249 */ SyscallDesc("unknown #249", unimplementedFunc), 37212109SRekai.GonzalezAlberquilla@arm.com /* 250 */ SyscallDesc("osf_uswitch", unimplementedFunc), 37313557Sgabeblack@google.com /* 251 */ SyscallDesc("osf_usleep_thread", unimplementedFunc), 37413628SAndrea.Mondelli@ucf.edu /* 252 */ SyscallDesc("osf_audcntl", unimplementedFunc), 37512109SRekai.GonzalezAlberquilla@arm.com /* 253 */ SyscallDesc("osf_audgen", unimplementedFunc), 37612109SRekai.GonzalezAlberquilla@arm.com /* 254 */ SyscallDesc("sysfs", unimplementedFunc), 37712109SRekai.GonzalezAlberquilla@arm.com /* 255 */ SyscallDesc("osf_subsys_info", unimplementedFunc), 37812109SRekai.GonzalezAlberquilla@arm.com /* 256 */ SyscallDesc("osf_getsysinfo", osf_getsysinfoFunc), 37912109SRekai.GonzalezAlberquilla@arm.com /* 257 */ SyscallDesc("osf_setsysinfo", osf_setsysinfoFunc), 38013557Sgabeblack@google.com /* 258 */ SyscallDesc("osf_afs_syscall", unimplementedFunc), 38113628SAndrea.Mondelli@ucf.edu /* 259 */ SyscallDesc("osf_swapctl", unimplementedFunc), 38213610Sgiacomo.gabrielli@arm.com /* 260 */ SyscallDesc("osf_memcntl", unimplementedFunc), 38313610Sgiacomo.gabrielli@arm.com /* 261 */ SyscallDesc("osf_fdatasync", unimplementedFunc), 38413610Sgiacomo.gabrielli@arm.com /* 262 */ SyscallDesc("unknown #262", unimplementedFunc), 38513610Sgiacomo.gabrielli@arm.com /* 263 */ SyscallDesc("unknown #263", unimplementedFunc), 38613610Sgiacomo.gabrielli@arm.com /* 264 */ SyscallDesc("unknown #264", unimplementedFunc), 38713610Sgiacomo.gabrielli@arm.com /* 265 */ SyscallDesc("unknown #265", unimplementedFunc), 38813865Sgabeblack@google.com /* 266 */ SyscallDesc("unknown #266", unimplementedFunc), 3899920Syasuko.eckert@amd.com /* 267 */ SyscallDesc("unknown #267", unimplementedFunc), 3909920Syasuko.eckert@amd.com /* 268 */ SyscallDesc("unknown #268", unimplementedFunc), 3919920Syasuko.eckert@amd.com /* 269 */ SyscallDesc("unknown #269", unimplementedFunc), 3929920Syasuko.eckert@amd.com /* 270 */ SyscallDesc("unknown #270", unimplementedFunc), 3939920Syasuko.eckert@amd.com /* 271 */ SyscallDesc("unknown #271", unimplementedFunc), 3948733Sgeoffrey.blake@arm.com /* 272 */ SyscallDesc("unknown #272", unimplementedFunc), 39513865Sgabeblack@google.com /* 273 */ SyscallDesc("unknown #273", unimplementedFunc), 3962315SN/A /* 274 */ SyscallDesc("unknown #274", unimplementedFunc), 3978733Sgeoffrey.blake@arm.com /* 275 */ SyscallDesc("unknown #275", unimplementedFunc), 39813557Sgabeblack@google.com /* 276 */ SyscallDesc("unknown #276", unimplementedFunc), 39913628SAndrea.Mondelli@ucf.edu /* 277 */ SyscallDesc("unknown #277", unimplementedFunc), 4002315SN/A /* 278 */ SyscallDesc("unknown #278", unimplementedFunc), 4018733Sgeoffrey.blake@arm.com /* 279 */ SyscallDesc("unknown #279", unimplementedFunc), 4028733Sgeoffrey.blake@arm.com /* 280 */ SyscallDesc("unknown #280", unimplementedFunc), 4038733Sgeoffrey.blake@arm.com /* 281 */ SyscallDesc("unknown #281", unimplementedFunc), 4042315SN/A /* 282 */ SyscallDesc("unknown #282", unimplementedFunc), 4058733Sgeoffrey.blake@arm.com /* 283 */ SyscallDesc("unknown #283", unimplementedFunc), 4062315SN/A /* 284 */ SyscallDesc("unknown #284", unimplementedFunc), 4072315SN/A /* 285 */ SyscallDesc("unknown #285", unimplementedFunc), 40813557Sgabeblack@google.com /* 286 */ SyscallDesc("unknown #286", unimplementedFunc), 40913557Sgabeblack@google.com /* 287 */ SyscallDesc("unknown #287", unimplementedFunc), 41011886Sbrandon.potter@amd.com /* 288 */ SyscallDesc("unknown #288", unimplementedFunc), 41111886Sbrandon.potter@amd.com /* 289 */ SyscallDesc("unknown #289", unimplementedFunc), 41211886Sbrandon.potter@amd.com /* 290 */ SyscallDesc("unknown #290", unimplementedFunc), 41311886Sbrandon.potter@amd.com /* 291 */ SyscallDesc("unknown #291", unimplementedFunc), 41411886Sbrandon.potter@amd.com /* 292 */ SyscallDesc("unknown #292", unimplementedFunc), 41513557Sgabeblack@google.com /* 293 */ SyscallDesc("unknown #293", unimplementedFunc), 41613628SAndrea.Mondelli@ucf.edu /* 294 */ SyscallDesc("unknown #294", unimplementedFunc), 4172315SN/A /* 295 */ SyscallDesc("unknown #295", unimplementedFunc), 4188733Sgeoffrey.blake@arm.com /* 296 */ SyscallDesc("unknown #296", unimplementedFunc), 4192315SN/A /* 297 */ SyscallDesc("unknown #297", unimplementedFunc), 4202315SN/A /* 298 */ SyscallDesc("unknown #298", unimplementedFunc), 4218733Sgeoffrey.blake@arm.com /* 299 */ SyscallDesc("unknown #299", unimplementedFunc), 42213865Sgabeblack@google.com/* 4232669SN/A * Linux-specific system calls begin at 300 4248733Sgeoffrey.blake@arm.com */ 42513865Sgabeblack@google.com /* 300 */ SyscallDesc("bdflush", unimplementedFunc), 4268733Sgeoffrey.blake@arm.com /* 301 */ SyscallDesc("sethae", unimplementedFunc), 4278733Sgeoffrey.blake@arm.com /* 302 */ SyscallDesc("mount", unimplementedFunc), 42813865Sgabeblack@google.com /* 303 */ SyscallDesc("old_adjtimex", unimplementedFunc), 4292669SN/A /* 304 */ SyscallDesc("swapoff", unimplementedFunc), 43013865Sgabeblack@google.com /* 305 */ SyscallDesc("getdents", unimplementedFunc), 43113865Sgabeblack@google.com /* 306 */ SyscallDesc("create_module", unimplementedFunc), 43213865Sgabeblack@google.com /* 307 */ SyscallDesc("init_module", unimplementedFunc), 43313865Sgabeblack@google.com /* 308 */ SyscallDesc("delete_module", unimplementedFunc), 43413865Sgabeblack@google.com /* 309 */ SyscallDesc("get_kernel_syms", unimplementedFunc), 4354172Ssaidi@eecs.umich.edu /* 310 */ SyscallDesc("syslog", unimplementedFunc), 43613865Sgabeblack@google.com /* 311 */ SyscallDesc("reboot", unimplementedFunc), 43713865Sgabeblack@google.com /* 312 */ SyscallDesc("clone", unimplementedFunc), 43813865Sgabeblack@google.com /* 313 */ SyscallDesc("uselib", unimplementedFunc), 43913865Sgabeblack@google.com /* 314 */ SyscallDesc("mlock", unimplementedFunc), 44013865Sgabeblack@google.com /* 315 */ SyscallDesc("munlock", unimplementedFunc), 4412315SN/A /* 316 */ SyscallDesc("mlockall", unimplementedFunc), 44213557Sgabeblack@google.com /* 317 */ SyscallDesc("munlockall", unimplementedFunc), 44313865Sgabeblack@google.com /* 318 */ SyscallDesc("sysinfo", unimplementedFunc), 4444172Ssaidi@eecs.umich.edu /* 319 */ SyscallDesc("_sysctl", unimplementedFunc), 4458733Sgeoffrey.blake@arm.com /* 320 */ SyscallDesc("was sys_idle", unimplementedFunc), 4468733Sgeoffrey.blake@arm.com /* 321 */ SyscallDesc("oldumount", unimplementedFunc), 4474172Ssaidi@eecs.umich.edu /* 322 */ SyscallDesc("swapon", unimplementedFunc), 4484172Ssaidi@eecs.umich.edu /* 323 */ SyscallDesc("times", ignoreFunc), 4494172Ssaidi@eecs.umich.edu /* 324 */ SyscallDesc("personality", unimplementedFunc), 4502315SN/A /* 325 */ SyscallDesc("setfsuid", unimplementedFunc), 45113557Sgabeblack@google.com /* 326 */ SyscallDesc("setfsgid", unimplementedFunc), 45213865Sgabeblack@google.com /* 327 */ SyscallDesc("ustat", unimplementedFunc), 4532315SN/A /* 328 */ SyscallDesc("statfs", unimplementedFunc), 4548733Sgeoffrey.blake@arm.com /* 329 */ SyscallDesc("fstatfs", unimplementedFunc), 4558733Sgeoffrey.blake@arm.com /* 330 */ SyscallDesc("sched_setparam", unimplementedFunc), 4562680SN/A /* 331 */ SyscallDesc("sched_getparam", unimplementedFunc), 4573468Sgblack@eecs.umich.edu /* 332 */ SyscallDesc("sched_setscheduler", unimplementedFunc), 4582315SN/A /* 333 */ SyscallDesc("sched_getscheduler", unimplementedFunc), 4592315SN/A /* 334 */ SyscallDesc("sched_yield", unimplementedFunc), 46013557Sgabeblack@google.com /* 335 */ SyscallDesc("sched_get_priority_max", unimplementedFunc), 46113628SAndrea.Mondelli@ucf.edu /* 336 */ SyscallDesc("sched_get_priority_min", unimplementedFunc), 46213557Sgabeblack@google.com /* 337 */ SyscallDesc("sched_rr_get_interval", unimplementedFunc), 46312106SRekai.GonzalezAlberquilla@arm.com /* 338 */ SyscallDesc("afs_syscall", unimplementedFunc), 46412106SRekai.GonzalezAlberquilla@arm.com /* 339 */ SyscallDesc("uname", unameFunc), 4658733Sgeoffrey.blake@arm.com /* 340 */ SyscallDesc("nanosleep", unimplementedFunc), 46613865Sgabeblack@google.com /* 341 */ SyscallDesc("mremap", unimplementedFunc), 46713865Sgabeblack@google.com /* 342 */ SyscallDesc("nfsservctl", unimplementedFunc), 46813865Sgabeblack@google.com /* 343 */ SyscallDesc("setresuid", unimplementedFunc), 46913865Sgabeblack@google.com /* 344 */ SyscallDesc("getresuid", unimplementedFunc), 47013865Sgabeblack@google.com /* 345 */ SyscallDesc("pciconfig_read", unimplementedFunc), 4712315SN/A /* 346 */ SyscallDesc("pciconfig_write", unimplementedFunc), 47213557Sgabeblack@google.com /* 347 */ SyscallDesc("query_module", unimplementedFunc), 47313628SAndrea.Mondelli@ucf.edu /* 348 */ SyscallDesc("prctl", unimplementedFunc), 4742315SN/A /* 349 */ SyscallDesc("pread", unimplementedFunc), 4752680SN/A /* 350 */ SyscallDesc("pwrite", unimplementedFunc), 4762315SN/A /* 351 */ SyscallDesc("rt_sigreturn", unimplementedFunc), 4772315SN/A /* 352 */ SyscallDesc("rt_sigaction", ignoreFunc), 47813865Sgabeblack@google.com /* 353 */ SyscallDesc("rt_sigprocmask", unimplementedFunc), 47913865Sgabeblack@google.com /* 354 */ SyscallDesc("rt_sigpending", unimplementedFunc), 48013865Sgabeblack@google.com /* 355 */ SyscallDesc("rt_sigtimedwait", unimplementedFunc), 48113865Sgabeblack@google.com /* 356 */ SyscallDesc("rt_sigqueueinfo", unimplementedFunc), 48213865Sgabeblack@google.com /* 357 */ SyscallDesc("rt_sigsuspend", unimplementedFunc), 4839426SAndreas.Sandberg@ARM.com /* 358 */ SyscallDesc("select", unimplementedFunc), 48413865Sgabeblack@google.com /* 359 */ SyscallDesc("gettimeofday", gettimeofdayFunc<AlphaLinux>), 48513865Sgabeblack@google.com /* 360 */ SyscallDesc("settimeofday", unimplementedFunc), 48613865Sgabeblack@google.com /* 361 */ SyscallDesc("getitimer", unimplementedFunc), 48713628SAndrea.Mondelli@ucf.edu /* 362 */ SyscallDesc("setitimer", unimplementedFunc), 48813628SAndrea.Mondelli@ucf.edu /* 363 */ SyscallDesc("utimes", utimesFunc<AlphaLinux>), 4899426SAndreas.Sandberg@ARM.com /* 364 */ SyscallDesc("getrusage", getrusageFunc<AlphaLinux>), 49013557Sgabeblack@google.com /* 365 */ SyscallDesc("wait4", unimplementedFunc), 49113865Sgabeblack@google.com /* 366 */ SyscallDesc("adjtimex", unimplementedFunc), 49213557Sgabeblack@google.com /* 367 */ SyscallDesc("getcwd", getcwdFunc), 49313557Sgabeblack@google.com /* 368 */ SyscallDesc("capget", unimplementedFunc), 49413557Sgabeblack@google.com /* 369 */ SyscallDesc("capset", unimplementedFunc), 4959426SAndreas.Sandberg@ARM.com /* 370 */ SyscallDesc("sendfile", unimplementedFunc), 49613557Sgabeblack@google.com /* 371 */ SyscallDesc("setresgid", unimplementedFunc), 49713865Sgabeblack@google.com /* 372 */ SyscallDesc("getresgid", unimplementedFunc), 49813557Sgabeblack@google.com /* 373 */ SyscallDesc("dipc", unimplementedFunc), 49913611Sgabeblack@google.com /* 374 */ SyscallDesc("pivot_root", unimplementedFunc), 50013557Sgabeblack@google.com /* 375 */ SyscallDesc("mincore", unimplementedFunc), 5019426SAndreas.Sandberg@ARM.com /* 376 */ SyscallDesc("pciconfig_iobase", unimplementedFunc), 50213557Sgabeblack@google.com /* 377 */ SyscallDesc("getdents64", unimplementedFunc), 50313865Sgabeblack@google.com /* 378 */ SyscallDesc("gettid", unimplementedFunc), 50413557Sgabeblack@google.com /* 379 */ SyscallDesc("readahead", unimplementedFunc), 50513611Sgabeblack@google.com /* 380 */ SyscallDesc("security", unimplementedFunc), 50613557Sgabeblack@google.com /* 381 */ SyscallDesc("tkill", unimplementedFunc), 5079920Syasuko.eckert@amd.com /* 382 */ SyscallDesc("setxattr", unimplementedFunc), 50813557Sgabeblack@google.com /* 383 */ SyscallDesc("lsetxattr", unimplementedFunc), 50913865Sgabeblack@google.com /* 384 */ SyscallDesc("fsetxattr", unimplementedFunc), 51013557Sgabeblack@google.com /* 385 */ SyscallDesc("getxattr", unimplementedFunc), 51113557Sgabeblack@google.com /* 386 */ SyscallDesc("lgetxattr", unimplementedFunc), 51213557Sgabeblack@google.com /* 387 */ SyscallDesc("fgetxattr", unimplementedFunc), 51312109SRekai.GonzalezAlberquilla@arm.com /* 388 */ SyscallDesc("listxattr", unimplementedFunc), 51412109SRekai.GonzalezAlberquilla@arm.com /* 389 */ SyscallDesc("llistxattr", unimplementedFunc), 51512109SRekai.GonzalezAlberquilla@arm.com /* 390 */ SyscallDesc("flistxattr", unimplementedFunc), 51612109SRekai.GonzalezAlberquilla@arm.com /* 391 */ SyscallDesc("removexattr", unimplementedFunc), 51713557Sgabeblack@google.com /* 392 */ SyscallDesc("lremovexattr", unimplementedFunc), 51813865Sgabeblack@google.com /* 393 */ SyscallDesc("fremovexattr", unimplementedFunc), 51913557Sgabeblack@google.com /* 394 */ SyscallDesc("futex", unimplementedFunc), 52013557Sgabeblack@google.com /* 395 */ SyscallDesc("sched_setaffinity", unimplementedFunc), 52113557Sgabeblack@google.com /* 396 */ SyscallDesc("sched_getaffinity", unimplementedFunc), 52212109SRekai.GonzalezAlberquilla@arm.com /* 397 */ SyscallDesc("tuxcall", unimplementedFunc), 52313865Sgabeblack@google.com /* 398 */ SyscallDesc("io_setup", unimplementedFunc), 52413865Sgabeblack@google.com /* 399 */ SyscallDesc("io_destroy", unimplementedFunc), 52513865Sgabeblack@google.com /* 400 */ SyscallDesc("io_getevents", unimplementedFunc), 52613865Sgabeblack@google.com /* 401 */ SyscallDesc("io_submit", unimplementedFunc), 52713865Sgabeblack@google.com /* 402 */ SyscallDesc("io_cancel", unimplementedFunc), 52812109SRekai.GonzalezAlberquilla@arm.com /* 403 */ SyscallDesc("unknown #403", unimplementedFunc), 52913865Sgabeblack@google.com /* 404 */ SyscallDesc("unknown #404", unimplementedFunc), 53013865Sgabeblack@google.com /* 405 */ SyscallDesc("exit_group", exitFunc), // exit all threads... 53113865Sgabeblack@google.com /* 406 */ SyscallDesc("lookup_dcookie", unimplementedFunc), 53213865Sgabeblack@google.com /* 407 */ SyscallDesc("sys_epoll_create", unimplementedFunc), 53313865Sgabeblack@google.com /* 408 */ SyscallDesc("sys_epoll_ctl", unimplementedFunc), 53412109SRekai.GonzalezAlberquilla@arm.com /* 409 */ SyscallDesc("sys_epoll_wait", unimplementedFunc), 53513865Sgabeblack@google.com /* 410 */ SyscallDesc("remap_file_pages", unimplementedFunc), 53613865Sgabeblack@google.com /* 411 */ SyscallDesc("set_tid_address", unimplementedFunc), 53713865Sgabeblack@google.com /* 412 */ SyscallDesc("restart_syscall", unimplementedFunc), 53813865Sgabeblack@google.com /* 413 */ SyscallDesc("fadvise64", unimplementedFunc), 53913865Sgabeblack@google.com /* 414 */ SyscallDesc("timer_create", unimplementedFunc), 54013865Sgabeblack@google.com /* 415 */ SyscallDesc("timer_settime", unimplementedFunc), 54112109SRekai.GonzalezAlberquilla@arm.com /* 416 */ SyscallDesc("timer_gettime", unimplementedFunc), 54213865Sgabeblack@google.com /* 417 */ SyscallDesc("timer_getoverrun", unimplementedFunc), 54313865Sgabeblack@google.com /* 418 */ SyscallDesc("timer_delete", unimplementedFunc), 54413865Sgabeblack@google.com /* 419 */ SyscallDesc("clock_settime", unimplementedFunc), 54513865Sgabeblack@google.com /* 420 */ SyscallDesc("clock_gettime", unimplementedFunc), 54613865Sgabeblack@google.com /* 421 */ SyscallDesc("clock_getres", unimplementedFunc), 54713610Sgiacomo.gabrielli@arm.com /* 422 */ SyscallDesc("clock_nanosleep", unimplementedFunc), 54813865Sgabeblack@google.com /* 423 */ SyscallDesc("semtimedop", unimplementedFunc), 54913865Sgabeblack@google.com /* 424 */ SyscallDesc("tgkill", unimplementedFunc), 55013865Sgabeblack@google.com /* 425 */ SyscallDesc("stat64", stat64Func<AlphaLinux>), 55113865Sgabeblack@google.com /* 426 */ SyscallDesc("lstat64", lstat64Func<AlphaLinux>), 55213865Sgabeblack@google.com /* 427 */ SyscallDesc("fstat64", fstat64Func<AlphaLinux>), 55313610Sgiacomo.gabrielli@arm.com /* 428 */ SyscallDesc("vserver", unimplementedFunc), 55413865Sgabeblack@google.com /* 429 */ SyscallDesc("mbind", unimplementedFunc), 55513865Sgabeblack@google.com /* 430 */ SyscallDesc("get_mempolicy", unimplementedFunc), 55613865Sgabeblack@google.com /* 431 */ SyscallDesc("set_mempolicy", unimplementedFunc), 55713865Sgabeblack@google.com /* 432 */ SyscallDesc("mq_open", unimplementedFunc), 55813865Sgabeblack@google.com /* 433 */ SyscallDesc("mq_unlink", unimplementedFunc), 55913610Sgiacomo.gabrielli@arm.com /* 434 */ SyscallDesc("mq_timedsend", unimplementedFunc), 56013865Sgabeblack@google.com /* 435 */ SyscallDesc("mq_timedreceive", unimplementedFunc), 56113865Sgabeblack@google.com /* 436 */ SyscallDesc("mq_notify", unimplementedFunc), 56213865Sgabeblack@google.com /* 437 */ SyscallDesc("mq_getsetattr", unimplementedFunc), 56313865Sgabeblack@google.com /* 438 */ SyscallDesc("waitid", unimplementedFunc), 56413865Sgabeblack@google.com /* 439 */ SyscallDesc("add_key", unimplementedFunc), 5659920Syasuko.eckert@amd.com /* 440 */ SyscallDesc("request_key", unimplementedFunc), 56613865Sgabeblack@google.com /* 441 */ SyscallDesc("keyctl", unimplementedFunc) 56713865Sgabeblack@google.com}; 56813865Sgabeblack@google.com 56913865Sgabeblack@google.comAlphaLinuxProcess::AlphaLinuxProcess(LiveProcessParams * params, 57013865Sgabeblack@google.com ObjectFile *objFile) 5712315SN/A : AlphaLiveProcess(params, objFile), 5722315SN/A Num_Syscall_Descs(sizeof(syscallDescs) / sizeof(SyscallDesc)) 5732315SN/A{ 574 //init_regs->intRegFile[0] = 0; 575} 576 577 578 579SyscallDesc* 580AlphaLinuxProcess::getDesc(int callnum) 581{ 582 if (callnum < 0 || callnum > Num_Syscall_Descs) 583 return NULL; 584 return &syscallDescs[callnum]; 585} 586