syscalls.cc revision 10495
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Gabe Black
29 */
30
31#include "arch/sparc/linux/process.hh"
32#include "sim/syscall_emul.hh"
33
34class LiveProcess;
35class ThreadContext;
36
37namespace SparcISA {
38
39/// Target uname() handler.
40static SyscallReturn
41unameFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
42        ThreadContext *tc)
43{
44    int index = 0;
45    TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index));
46
47    strcpy(name->sysname, "Linux");
48    strcpy(name->nodename, "sim.gem5.org");
49    strcpy(name->release, "3.0.0-sparc64");
50    strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003");
51    strcpy(name->machine, "sparc");
52
53    name.copyOut(tc->getMemProxy());
54
55    return 0;
56}
57
58
59SyscallReturn
60getresuidFunc(SyscallDesc *desc, int num, LiveProcess *p, ThreadContext *tc)
61{
62    const IntReg id = htog(100);
63    int index = 0;
64    Addr ruid = p->getSyscallArg(tc, index);
65    Addr euid = p->getSyscallArg(tc, index);
66    Addr suid = p->getSyscallArg(tc, index);
67    // Handle the EFAULT case
68    // Set the ruid
69    if (ruid) {
70        BufferArg ruidBuff(ruid, sizeof(IntReg));
71        memcpy(ruidBuff.bufferPtr(), &id, sizeof(IntReg));
72        ruidBuff.copyOut(tc->getMemProxy());
73    }
74    // Set the euid
75    if (euid) {
76        BufferArg euidBuff(euid, sizeof(IntReg));
77        memcpy(euidBuff.bufferPtr(), &id, sizeof(IntReg));
78        euidBuff.copyOut(tc->getMemProxy());
79    }
80    // Set the suid
81    if (suid) {
82        BufferArg suidBuff(suid, sizeof(IntReg));
83        memcpy(suidBuff.bufferPtr(), &id, sizeof(IntReg));
84        suidBuff.copyOut(tc->getMemProxy());
85    }
86    return 0;
87}
88
89SyscallDesc SparcLinuxProcess::syscall32Descs[] = {
90    /*   0 */ SyscallDesc("restart_syscall", unimplementedFunc),
91    /*   1 */ SyscallDesc("exit", exitFunc), // 32 bit
92    /*   2 */ SyscallDesc("fork", unimplementedFunc),
93    /*   3 */ SyscallDesc("read", readFunc),
94    /*   4 */ SyscallDesc("write", writeFunc),
95    /*   5 */ SyscallDesc("open", openFunc<Sparc32Linux>), // 32 bit
96    /*   6 */ SyscallDesc("close", closeFunc),
97    /*   7 */ SyscallDesc("wait4", unimplementedFunc), // 32 bit
98    /*   8 */ SyscallDesc("creat", unimplementedFunc), // 32 bit
99    /*   9 */ SyscallDesc("link", unimplementedFunc),
100    /*  10 */ SyscallDesc("unlink", unlinkFunc),
101    /*  11 */ SyscallDesc("execv", unimplementedFunc),
102    /*  12 */ SyscallDesc("chdir", unimplementedFunc),
103    /*  13 */ SyscallDesc("chown", chownFunc), // 32 bit
104    /*  14 */ SyscallDesc("mknod", unimplementedFunc),
105    /*  15 */ SyscallDesc("chmod", unimplementedFunc),
106    /*  16 */ SyscallDesc("lchown", unimplementedFunc), // 32 bit
107    /*  17 */ SyscallDesc("brk", brkFunc),
108    /*  18 */ SyscallDesc("perfctr", unimplementedFunc), // 32 bit
109    /*  19 */ SyscallDesc("lseek", lseekFunc), // 32 bit
110    /*  20 */ SyscallDesc("getpid", getpidFunc),
111    /*  21 */ SyscallDesc("capget", unimplementedFunc),
112    /*  22 */ SyscallDesc("capset", unimplementedFunc),
113    /*  23 */ SyscallDesc("setuid", setuidFunc), // 32 bit
114    /*  24 */ SyscallDesc("getuid", getuidFunc), // 32 bit
115    /*  25 */ SyscallDesc("time", unimplementedFunc),
116    /*  26 */ SyscallDesc("ptrace", unimplementedFunc),
117    /*  27 */ SyscallDesc("alarm", unimplementedFunc),
118    /*  28 */ SyscallDesc("sigaltstack", unimplementedFunc), // 32 bit
119    /*  29 */ SyscallDesc("pause", unimplementedFunc), // 32 bit
120    /*  30 */ SyscallDesc("utime", unimplementedFunc),
121    /*  31 */ SyscallDesc("lchown32", unimplementedFunc),
122    /*  32 */ SyscallDesc("fchown32", unimplementedFunc),
123    /*  33 */ SyscallDesc("access", unimplementedFunc), // 32 bit
124    /*  34 */ SyscallDesc("nice", unimplementedFunc), // 32 bit
125    /*  35 */ SyscallDesc("chown32", unimplementedFunc),
126    /*  36 */ SyscallDesc("sync", unimplementedFunc),
127    /*  37 */ SyscallDesc("kill", unimplementedFunc), // 32 bit
128    /*  38 */ SyscallDesc("stat", unimplementedFunc),
129    /*  39 */ SyscallDesc("sendfile", unimplementedFunc), // 32 bit
130    /*  40 */ SyscallDesc("lstat", unimplementedFunc),
131    /*  41 */ SyscallDesc("dup", unimplementedFunc),
132    /*  42 */ SyscallDesc("pipe", pipePseudoFunc),
133    /*  43 */ SyscallDesc("times", ignoreFunc),
134    /*  44 */ SyscallDesc("getuid32", unimplementedFunc),
135    /*  45 */ SyscallDesc("umount2", unimplementedFunc), // 32 bit
136    /*  46 */ SyscallDesc("setgid", unimplementedFunc), // 32 bit
137    /*  47 */ SyscallDesc("getgid", getgidFunc), // 32 bit
138    /*  48 */ SyscallDesc("signal", unimplementedFunc), // 32 bit
139    /*  49 */ SyscallDesc("geteuid", geteuidFunc), // 32 bit
140    /*  50 */ SyscallDesc("getegid", getegidFunc), // 32 bit
141    /*  51 */ SyscallDesc("acct", unimplementedFunc),
142    /*  52 */ SyscallDesc("memory_ordering", unimplementedFunc),
143    /*  53 */ SyscallDesc("getgid32", unimplementedFunc),
144    /*  54 */ SyscallDesc("ioctl", unimplementedFunc),
145    /*  55 */ SyscallDesc("reboot", unimplementedFunc), // 32 bit
146    /*  56 */ SyscallDesc("mmap2", unimplementedFunc), // 32 bit
147    /*  57 */ SyscallDesc("symlink", unimplementedFunc),
148    /*  58 */ SyscallDesc("readlink", readlinkFunc), // 32 bit
149    /*  59 */ SyscallDesc("execve", unimplementedFunc), // 32 bit
150    /*  60 */ SyscallDesc("umask", unimplementedFunc), // 32 bit
151    /*  61 */ SyscallDesc("chroot", unimplementedFunc),
152    /*  62 */ SyscallDesc("fstat", unimplementedFunc),
153    /*  63 */ SyscallDesc("fstat64", fstat64Func<Sparc32Linux>),
154    /*  64 */ SyscallDesc("getpagesize", unimplementedFunc),
155    /*  65 */ SyscallDesc("msync", unimplementedFunc), // 32 bit
156    /*  66 */ SyscallDesc("vfork", unimplementedFunc),
157    /*  67 */ SyscallDesc("pread64", unimplementedFunc), // 32 bit
158    /*  68 */ SyscallDesc("pwrite64", unimplementedFunc), // 32 bit
159    /*  69 */ SyscallDesc("geteuid32", unimplementedFunc),
160    /*  70 */ SyscallDesc("getegid32", unimplementedFunc),
161    /*  71 */ SyscallDesc("mmap", mmapFunc<Sparc32Linux>),
162    /*  72 */ SyscallDesc("setreuid32", unimplementedFunc),
163    /*  73 */ SyscallDesc("munmap", munmapFunc),
164    /*  74 */ SyscallDesc("mprotect", ignoreFunc),
165    /*  75 */ SyscallDesc("madvise", unimplementedFunc),
166    /*  76 */ SyscallDesc("vhangup", unimplementedFunc),
167    /*  77 */ SyscallDesc("truncate64", unimplementedFunc), // 32 bit
168    /*  78 */ SyscallDesc("mincore", unimplementedFunc),
169    /*  79 */ SyscallDesc("getgroups", unimplementedFunc), // 32 bit
170    /*  80 */ SyscallDesc("setgroups", unimplementedFunc), // 32 bit
171    /*  81 */ SyscallDesc("getpgrp", unimplementedFunc),
172    /*  82 */ SyscallDesc("setgroups32", unimplementedFunc), // 32 bit
173    /*  83 */ SyscallDesc("setitimer", unimplementedFunc), // 32 bit
174    /*  84 */ SyscallDesc("ftruncate64", unimplementedFunc), // 32 bit
175    /*  85 */ SyscallDesc("swapon", unimplementedFunc), // 32 bit
176    /*  86 */ SyscallDesc("getitimer", unimplementedFunc), // 32 bit
177    /*  87 */ SyscallDesc("setuid32", unimplementedFunc),
178    /*  88 */ SyscallDesc("sethostname", unimplementedFunc), // 32 bit
179    /*  89 */ SyscallDesc("setgid32", unimplementedFunc),
180    /*  90 */ SyscallDesc("dup2", unimplementedFunc),
181    /*  91 */ SyscallDesc("setfsuid32", unimplementedFunc),
182    /*  92 */ SyscallDesc("fcntl", unimplementedFunc),
183    /*  93 */ SyscallDesc("select", unimplementedFunc), // 32 bit
184    /*  94 */ SyscallDesc("setfsgid32", unimplementedFunc),
185    /*  95 */ SyscallDesc("fsync", unimplementedFunc),
186    /*  96 */ SyscallDesc("setpriority", unimplementedFunc), // 32 bit
187    /*  97 */ SyscallDesc("socket", unimplementedFunc),
188    /*  98 */ SyscallDesc("connect", unimplementedFunc),
189    /*  99 */ SyscallDesc("accept", unimplementedFunc),
190    /* 100 */ SyscallDesc("getpriority", unimplementedFunc), // 32 bit
191    /* 101 */ SyscallDesc("rt_sigreturn", unimplementedFunc), // 32 bit
192    /* 102 */ SyscallDesc("rt_sigaction", ignoreFunc), // 32 bit
193    /* 103 */ SyscallDesc("rt_sigprocmask", ignoreFunc), // 32 bit
194    /* 104 */ SyscallDesc("rt_sigpending", unimplementedFunc), // 32 bit
195    /* 105 */ SyscallDesc("rt_sigtimedwait", unimplementedFunc),
196    /* 106 */ SyscallDesc("rt_sigqueueinfo", unimplementedFunc), // 32 bit
197    /* 107 */ SyscallDesc("rt_sigsuspend", unimplementedFunc),
198    /* 108 */ SyscallDesc("setresuid32", unimplementedFunc),
199    /* 109 */ SyscallDesc("getresuid32", getresuidFunc),
200    /* 110 */ SyscallDesc("setresgid32", ignoreFunc),
201    /* 111 */ SyscallDesc("getresgid32", unimplementedFunc),
202    /* 112 */ SyscallDesc("setregid32", unimplementedFunc),
203    /* 113 */ SyscallDesc("revcmsg", unimplementedFunc),
204    /* 114 */ SyscallDesc("sendmsg", unimplementedFunc),
205    /* 115 */ SyscallDesc("getgroups32", unimplementedFunc), // 32 bit
206    /* 116 */ SyscallDesc("gettimeofday", gettimeofdayFunc<Sparc32Linux>), // 32 bit
207    /* 117 */ SyscallDesc("getrusage", unimplementedFunc), // 32 bit
208    /* 118 */ SyscallDesc("getsockopt", unimplementedFunc),
209    /* 119 */ SyscallDesc("getcwd", getcwdFunc),
210    /* 120 */ SyscallDesc("readv", unimplementedFunc),
211    /* 121 */ SyscallDesc("writev", unimplementedFunc),
212    /* 122 */ SyscallDesc("settimeofday", unimplementedFunc), // 32 bit
213    /* 123 */ SyscallDesc("fchown", unimplementedFunc), // 32 bit
214    /* 124 */ SyscallDesc("fchmod", unimplementedFunc),
215    /* 125 */ SyscallDesc("recvfrom", unimplementedFunc),
216    /* 126 */ SyscallDesc("setreuid", unimplementedFunc), // 32 bit
217    /* 127 */ SyscallDesc("setregid", unimplementedFunc), // 32 bit
218    /* 128 */ SyscallDesc("rename", renameFunc),
219    /* 129 */ SyscallDesc("truncate", unimplementedFunc),
220    /* 130 */ SyscallDesc("ftruncate", unimplementedFunc),
221    /* 131 */ SyscallDesc("flock", unimplementedFunc),
222    /* 132 */ SyscallDesc("lstat64", unimplementedFunc),
223    /* 133 */ SyscallDesc("sendto", unimplementedFunc),
224    /* 134 */ SyscallDesc("shutdown", unimplementedFunc),
225    /* 135 */ SyscallDesc("socketpair", unimplementedFunc),
226    /* 136 */ SyscallDesc("mkdir", mkdirFunc), // 32 bit
227    /* 137 */ SyscallDesc("rmdir", unimplementedFunc),
228    /* 138 */ SyscallDesc("utimes", unimplementedFunc), // 32 bit
229    /* 139 */ SyscallDesc("stat64", unimplementedFunc),
230    /* 140 */ SyscallDesc("sendfile64", unimplementedFunc), // 32 bit
231    /* 141 */ SyscallDesc("getpeername", unimplementedFunc),
232    /* 142 */ SyscallDesc("futex", unimplementedFunc), // 32 bit
233    /* 143 */ SyscallDesc("gettid", unimplementedFunc),
234    /* 144 */ SyscallDesc("getrlimit", unimplementedFunc),
235    /* 145 */ SyscallDesc("setrlimit", unimplementedFunc),
236    /* 146 */ SyscallDesc("pivot_root", unimplementedFunc),
237    /* 147 */ SyscallDesc("prctl", unimplementedFunc), // 32 bit
238    /* 148 */ SyscallDesc("pciconfig_read", unimplementedFunc),
239    /* 149 */ SyscallDesc("pciconfig_write", unimplementedFunc),
240    /* 150 */ SyscallDesc("getsockname", unimplementedFunc),
241    /* 151 */ SyscallDesc("inotify_init", unimplementedFunc),
242    /* 152 */ SyscallDesc("inotify_add_watch", unimplementedFunc),
243    /* 153 */ SyscallDesc("poll", unimplementedFunc),
244    /* 154 */ SyscallDesc("getdents64", unimplementedFunc),
245    /* 155 */ SyscallDesc("fcntl64", unimplementedFunc),
246    /* 156 */ SyscallDesc("inotify_rm_watch", unimplementedFunc),
247    /* 157 */ SyscallDesc("statfs", unimplementedFunc),
248    /* 158 */ SyscallDesc("fstatfs", unimplementedFunc),
249    /* 159 */ SyscallDesc("umount", unimplementedFunc),
250    /* 160 */ SyscallDesc("sched_setaffinity", unimplementedFunc),
251    /* 161 */ SyscallDesc("sched_getaffinity", unimplementedFunc),
252    /* 162 */ SyscallDesc("getdomainname", unimplementedFunc), // 32 bit
253    /* 163 */ SyscallDesc("setdomainname", unimplementedFunc), // 32 bit
254    /* 164 */ SyscallDesc("ni_syscall", unimplementedFunc),
255    /* 165 */ SyscallDesc("quotactl", unimplementedFunc),
256    /* 166 */ SyscallDesc("set_tid_address", unimplementedFunc),
257    /* 167 */ SyscallDesc("mount", unimplementedFunc),
258    /* 168 */ SyscallDesc("ustat", unimplementedFunc),
259    /* 169 */ SyscallDesc("setxattr", unimplementedFunc), // 32 bit
260    /* 170 */ SyscallDesc("lsetxattr", unimplementedFunc), // 32 bit
261    /* 171 */ SyscallDesc("fsetxattr", unimplementedFunc), // 32 bit
262    /* 172 */ SyscallDesc("getxattr", unimplementedFunc),
263    /* 173 */ SyscallDesc("lgetxattr", unimplementedFunc),
264    /* 174 */ SyscallDesc("getdents", unimplementedFunc),
265    /* 175 */ SyscallDesc("setsid", unimplementedFunc),
266    /* 176 */ SyscallDesc("fchdir", unimplementedFunc),
267    /* 177 */ SyscallDesc("fgetxattr", unimplementedFunc), // 32 bit
268    /* 178 */ SyscallDesc("listxattr", unimplementedFunc),
269    /* 179 */ SyscallDesc("llistxattr", unimplementedFunc),
270    /* 180 */ SyscallDesc("flistxattr", unimplementedFunc), // 32 bit
271    /* 181 */ SyscallDesc("removexattr", unimplementedFunc),
272    /* 182 */ SyscallDesc("lremovexattr", unimplementedFunc),
273    /* 183 */ SyscallDesc("sigpending", unimplementedFunc),
274    /* 184 */ SyscallDesc("query_module", unimplementedFunc),
275    /* 185 */ SyscallDesc("setpgid", unimplementedFunc), // 32 bit
276    /* 186 */ SyscallDesc("fremovexattr", unimplementedFunc), // 32 bit
277    /* 187 */ SyscallDesc("tkill", unimplementedFunc), // 32 bit
278    /* 188 */ SyscallDesc("exit_group", exitGroupFunc), // 32 bit
279    /* 189 */ SyscallDesc("uname", unameFunc),
280    /* 190 */ SyscallDesc("init_module", unimplementedFunc), // 32 bit
281    /* 191 */ SyscallDesc("personality", unimplementedFunc),
282    /* 192 */ SyscallDesc("remap_file_pages", unimplementedFunc),
283    /* 193 */ SyscallDesc("epoll_create", unimplementedFunc), // 32 bit
284    /* 194 */ SyscallDesc("epoll_ctl", unimplementedFunc), // 32 bit
285    /* 195 */ SyscallDesc("epoll_wait", unimplementedFunc), // 32 bit
286    /* 196 */ SyscallDesc("ioprio_set", unimplementedFunc), // 32 bit
287    /* 197 */ SyscallDesc("getppid", getppidFunc),
288    /* 198 */ SyscallDesc("sigaction", unimplementedFunc), // 32 bit
289    /* 199 */ SyscallDesc("sgetmask", unimplementedFunc),
290    /* 200 */ SyscallDesc("ssetmask", unimplementedFunc),
291    /* 201 */ SyscallDesc("sigsuspend", unimplementedFunc),
292    /* 202 */ SyscallDesc("oldlstat", unimplementedFunc),
293    /* 203 */ SyscallDesc("uselib", unimplementedFunc),
294    /* 204 */ SyscallDesc("readdir", unimplementedFunc),
295    /* 205 */ SyscallDesc("readahead", unimplementedFunc), // 32 bit
296    /* 206 */ SyscallDesc("socketcall", unimplementedFunc), // 32 bit
297    /* 207 */ SyscallDesc("syslog", unimplementedFunc), // 32 bit
298    /* 208 */ SyscallDesc("lookup_dcookie", unimplementedFunc), // 32 bit
299    /* 209 */ SyscallDesc("fadvise64", unimplementedFunc), // 32 bit
300    /* 210 */ SyscallDesc("fadvise64_64", unimplementedFunc), // 32 bit
301    /* 211 */ SyscallDesc("tgkill", unimplementedFunc), // 32 bit
302    /* 212 */ SyscallDesc("waitpid", unimplementedFunc), // 32 bit
303    /* 213 */ SyscallDesc("swapoff", unimplementedFunc),
304    /* 214 */ SyscallDesc("sysinfo", sysinfoFunc<Sparc32Linux>), // 32 bit
305    /* 215 */ SyscallDesc("ipc", unimplementedFunc), // 32 bit
306    /* 216 */ SyscallDesc("sigreturn", unimplementedFunc), // 32 bit
307    /* 217 */ SyscallDesc("clone", cloneFunc),
308    /* 218 */ SyscallDesc("ioprio_get", unimplementedFunc), // 32 bit
309    /* 219 */ SyscallDesc("adjtimex", unimplementedFunc), // 32 bit
310    /* 220 */ SyscallDesc("sigprocmask", unimplementedFunc), // 32 bit
311    /* 221 */ SyscallDesc("create_module", unimplementedFunc),
312    /* 222 */ SyscallDesc("delete_module", unimplementedFunc), // 32 bit
313    /* 223 */ SyscallDesc("get_kernel_syms", unimplementedFunc),
314    /* 224 */ SyscallDesc("getpgid", unimplementedFunc), // 32 bit
315    /* 225 */ SyscallDesc("bdflush", unimplementedFunc), // 32 bit
316    /* 226 */ SyscallDesc("sysfs", unimplementedFunc), // 32 bit
317    /* 227 */ SyscallDesc("afs_syscall", unimplementedFunc),
318    /* 228 */ SyscallDesc("setfsuid", unimplementedFunc), // 32 bit
319    /* 229 */ SyscallDesc("setfsgid", unimplementedFunc), // 32 bit
320    /* 230 */ SyscallDesc("_newselect", unimplementedFunc), // 32 bit
321    /* 231 */ SyscallDesc("time", ignoreFunc),
322    /* 232 */ SyscallDesc("oldstat", unimplementedFunc),
323    /* 233 */ SyscallDesc("stime", unimplementedFunc),
324    /* 234 */ SyscallDesc("statfs64", unimplementedFunc),
325    /* 235 */ SyscallDesc("fstatfs64", unimplementedFunc),
326    /* 236 */ SyscallDesc("_llseek", _llseekFunc),
327    /* 237 */ SyscallDesc("mlock", unimplementedFunc),
328    /* 238 */ SyscallDesc("munlock", unimplementedFunc),
329    /* 239 */ SyscallDesc("mlockall", unimplementedFunc), // 32 bit
330    /* 240 */ SyscallDesc("munlockall", unimplementedFunc),
331    /* 241 */ SyscallDesc("sched_setparam", unimplementedFunc), // 32 bit
332    /* 242 */ SyscallDesc("sched_getparam", unimplementedFunc), // 32 bit
333    /* 243 */ SyscallDesc("sched_setscheduler", unimplementedFunc), // 32 bit
334    /* 244 */ SyscallDesc("sched_getscheduler", unimplementedFunc), // 32 bit
335    /* 245 */ SyscallDesc("sched_yield", unimplementedFunc),
336    /* 246 */ SyscallDesc("sched_get_priority_max", unimplementedFunc), // 32 bit
337    /* 247 */ SyscallDesc("sched_get_priority_min", unimplementedFunc), // 32 bit
338    /* 248 */ SyscallDesc("sched_rr_get_interval", unimplementedFunc), // 32 bit
339    /* 249 */ SyscallDesc("nanosleep", unimplementedFunc),
340    /* 250 */ SyscallDesc("mremap", mremapFunc<Sparc32Linux>), // 32 bit
341    /* 251 */ SyscallDesc("_sysctl", unimplementedFunc), // 32 bit
342    /* 252 */ SyscallDesc("getsid", unimplementedFunc), // 32 bit
343    /* 253 */ SyscallDesc("fdatasync", unimplementedFunc),
344    /* 254 */ SyscallDesc("nfsservctl", unimplementedFunc), // 32 bit
345    /* 255 */ SyscallDesc("aplib", unimplementedFunc),
346    /* 256 */ SyscallDesc("clock_settime", unimplementedFunc),
347    /* 257 */ SyscallDesc("clock_gettime", unimplementedFunc),
348    /* 258 */ SyscallDesc("clock_getres", unimplementedFunc),
349    /* 259 */ SyscallDesc("clock_nanosleep", unimplementedFunc), // 32 bit
350    /* 260 */ SyscallDesc("sched_getaffinity", unimplementedFunc),
351    /* 261 */ SyscallDesc("sched_setaffinity", unimplementedFunc),
352    /* 262 */ SyscallDesc("timer_settime", unimplementedFunc), // 32 bit
353    /* 263 */ SyscallDesc("timer_gettime", unimplementedFunc),
354    /* 264 */ SyscallDesc("timer_getoverrun", unimplementedFunc),
355    /* 265 */ SyscallDesc("timer_delete", unimplementedFunc),
356    /* 266 */ SyscallDesc("timer_create", unimplementedFunc),
357    /* 267 */ SyscallDesc("vserver", unimplementedFunc),
358    /* 268 */ SyscallDesc("io_setup", unimplementedFunc),
359    /* 269 */ SyscallDesc("io_destroy", unimplementedFunc),
360    /* 270 */ SyscallDesc("io_submit", unimplementedFunc), // 32 bit
361    /* 271 */ SyscallDesc("io_cancel", unimplementedFunc),
362    /* 272 */ SyscallDesc("io_getevents", unimplementedFunc),
363    /* 273 */ SyscallDesc("mq_open", unimplementedFunc), // 32 bit
364    /* 274 */ SyscallDesc("mq_unlink", unimplementedFunc),
365    /* 275 */ SyscallDesc("mq_timedsend", unimplementedFunc),
366    /* 276 */ SyscallDesc("mq_timedreceive", unimplementedFunc),
367    /* 277 */ SyscallDesc("mq_notify", unimplementedFunc),
368    /* 278 */ SyscallDesc("mq_getsetattr", unimplementedFunc),
369    /* 279 */ SyscallDesc("waitid", unimplementedFunc),
370    /* 280 */ SyscallDesc("sys_setaltroot", unimplementedFunc),
371    /* 281 */ SyscallDesc("add_key", unimplementedFunc),
372    /* 282 */ SyscallDesc("request_key", unimplementedFunc),
373    /* 283 */ SyscallDesc("keyctl", unimplementedFunc),
374    /* 284 */ SyscallDesc("openat", unimplementedFunc),
375    /* 285 */ SyscallDesc("mkdirat", unimplementedFunc),
376    /* 286 */ SyscallDesc("mknodat", unimplementedFunc),
377    /* 287 */ SyscallDesc("fchownat", unimplementedFunc),
378    /* 288 */ SyscallDesc("futimesat", unimplementedFunc),
379    /* 289 */ SyscallDesc("fstatat64", unimplementedFunc),
380    /* 290 */ SyscallDesc("unlinkat", unimplementedFunc),
381    /* 291 */ SyscallDesc("renameat", unimplementedFunc),
382    /* 292 */ SyscallDesc("linkat", unimplementedFunc),
383    /* 293 */ SyscallDesc("symlinkat", unimplementedFunc),
384    /* 294 */ SyscallDesc("readlinkat", unimplementedFunc),
385    /* 295 */ SyscallDesc("fchmodat", unimplementedFunc),
386    /* 296 */ SyscallDesc("faccessat", unimplementedFunc),
387    /* 297 */ SyscallDesc("pselect6", unimplementedFunc),
388    /* 298 */ SyscallDesc("ppoll", unimplementedFunc),
389    /* 299 */ SyscallDesc("unshare", unimplementedFunc)
390};
391
392const int SparcLinuxProcess::Num_Syscall32_Descs =
393    sizeof(SparcLinuxProcess::syscall32Descs) / sizeof(SyscallDesc);
394
395SyscallDesc SparcLinuxProcess::syscallDescs[] = {
396    /*  0 */ SyscallDesc("restart_syscall", unimplementedFunc),
397    /*  1 */ SyscallDesc("exit", exitFunc),
398    /*  2 */ SyscallDesc("fork", unimplementedFunc),
399    /*  3 */ SyscallDesc("read", readFunc),
400    /*  4 */ SyscallDesc("write", writeFunc),
401    /*  5 */ SyscallDesc("open", openFunc<SparcLinux>),
402    /*  6 */ SyscallDesc("close", closeFunc),
403    /*  7 */ SyscallDesc("wait4", unimplementedFunc),
404    /*  8 */ SyscallDesc("creat", unimplementedFunc),
405    /*  9 */ SyscallDesc("link", unimplementedFunc),
406    /* 10 */ SyscallDesc("unlink", unlinkFunc),
407    /* 11 */ SyscallDesc("execv", unimplementedFunc),
408    /* 12 */ SyscallDesc("chdir", unimplementedFunc),
409    /* 13 */ SyscallDesc("chown", chownFunc),
410    /* 14 */ SyscallDesc("mknod", unimplementedFunc),
411    /* 15 */ SyscallDesc("chmod", chmodFunc<Linux>),
412    /* 16 */ SyscallDesc("lchown", unimplementedFunc),
413    /* 17 */ SyscallDesc("brk", brkFunc),
414    /* 18 */ SyscallDesc("perfctr", unimplementedFunc),
415    /* 19 */ SyscallDesc("lseek", lseekFunc),
416    /* 20 */ SyscallDesc("getpid", getpidFunc),
417    /* 21 */ SyscallDesc("capget", unimplementedFunc),
418    /* 22 */ SyscallDesc("capset", unimplementedFunc),
419    /* 23 */ SyscallDesc("setuid", setuidFunc),
420    /* 24 */ SyscallDesc("getuid", getuidFunc),
421    /* 25 */ SyscallDesc("time", unimplementedFunc),
422    /* 26 */ SyscallDesc("ptrace", unimplementedFunc),
423    /* 27 */ SyscallDesc("alarm", unimplementedFunc),
424    /* 28 */ SyscallDesc("sigaltstack", unimplementedFunc),
425    /* 29 */ SyscallDesc("pause", unimplementedFunc),
426    /* 30 */ SyscallDesc("utime", unimplementedFunc),
427    /* 31 */ SyscallDesc("lchown32", unimplementedFunc),
428    /* 32 */ SyscallDesc("fchown32", unimplementedFunc),
429    /* 33 */ SyscallDesc("access", unimplementedFunc),
430    /* 34 */ SyscallDesc("nice", unimplementedFunc),
431    /* 35 */ SyscallDesc("chown32", unimplementedFunc),
432    /* 36 */ SyscallDesc("sync", unimplementedFunc),
433    /* 37 */ SyscallDesc("kill", unimplementedFunc),
434    /* 38 */ SyscallDesc("stat", unimplementedFunc),
435    /* 39 */ SyscallDesc("sendfile", unimplementedFunc),
436    /* 40 */ SyscallDesc("lstat", unimplementedFunc),
437    /* 41 */ SyscallDesc("dup", unimplementedFunc),
438    /* 42 */ SyscallDesc("pipe", pipePseudoFunc),
439    /* 43 */ SyscallDesc("times", ignoreFunc),
440    /* 44 */ SyscallDesc("getuid32", unimplementedFunc),
441    /* 45 */ SyscallDesc("umount2", unimplementedFunc),
442    /* 46 */ SyscallDesc("setgid", unimplementedFunc),
443    /* 47 */ SyscallDesc("getgid", getgidFunc),
444    /* 48 */ SyscallDesc("signal", unimplementedFunc),
445    /* 49 */ SyscallDesc("geteuid", geteuidFunc),
446    /* 50 */ SyscallDesc("getegid", getegidFunc),
447    /* 51 */ SyscallDesc("acct", unimplementedFunc),
448    /* 52 */ SyscallDesc("memory_ordering", unimplementedFunc),
449    /* 53 */ SyscallDesc("getgid32", unimplementedFunc),
450    /* 54 */ SyscallDesc("ioctl", unimplementedFunc),
451    /* 55 */ SyscallDesc("reboot", unimplementedFunc),
452    /* 56 */ SyscallDesc("mmap2", unimplementedFunc),
453    /* 57 */ SyscallDesc("symlink", unimplementedFunc),
454    /* 58 */ SyscallDesc("readlink", readlinkFunc),
455    /* 59 */ SyscallDesc("execve", unimplementedFunc),
456    /* 60 */ SyscallDesc("umask", unimplementedFunc),
457    /* 61 */ SyscallDesc("chroot", unimplementedFunc),
458    /* 62 */ SyscallDesc("fstat", fstatFunc<SparcLinux>),
459    /* 63 */ SyscallDesc("fstat64", unimplementedFunc),
460    /* 64 */ SyscallDesc("getpagesize", unimplementedFunc),
461    /* 65 */ SyscallDesc("msync", unimplementedFunc),
462    /* 66 */ SyscallDesc("vfork", unimplementedFunc),
463    /* 67 */ SyscallDesc("pread64", unimplementedFunc),
464    /* 68 */ SyscallDesc("pwrite64", unimplementedFunc),
465    /* 69 */ SyscallDesc("geteuid32", unimplementedFunc),
466    /* 70 */ SyscallDesc("getegid32", unimplementedFunc),
467    /* 71 */ SyscallDesc("mmap", mmapFunc<SparcLinux>),
468    /* 72 */ SyscallDesc("setreuid32", unimplementedFunc),
469    /* 73 */ SyscallDesc("munmap", munmapFunc),
470    /* 74 */ SyscallDesc("mprotect", ignoreFunc),
471    /* 75 */ SyscallDesc("madvise", unimplementedFunc),
472    /* 76 */ SyscallDesc("vhangup", unimplementedFunc),
473    /* 77 */ SyscallDesc("truncate64", unimplementedFunc),
474    /* 78 */ SyscallDesc("mincore", unimplementedFunc),
475    /* 79 */ SyscallDesc("getgroups", unimplementedFunc),
476    /* 80 */ SyscallDesc("setgroups", unimplementedFunc),
477    /* 81 */ SyscallDesc("getpgrp", unimplementedFunc),
478    /* 82 */ SyscallDesc("setgroups32", unimplementedFunc),
479    /* 83 */ SyscallDesc("setitimer", unimplementedFunc),
480    /* 84 */ SyscallDesc("ftruncate64", unimplementedFunc),
481    /* 85 */ SyscallDesc("swapon", unimplementedFunc),
482    /* 86 */ SyscallDesc("getitimer", unimplementedFunc),
483    /* 87 */ SyscallDesc("setuid32", unimplementedFunc),
484    /* 88 */ SyscallDesc("sethostname", unimplementedFunc),
485    /* 89 */ SyscallDesc("setgid32", unimplementedFunc),
486    /* 90 */ SyscallDesc("dup2", unimplementedFunc),
487    /* 91 */ SyscallDesc("setfsuid32", unimplementedFunc),
488    /* 92 */ SyscallDesc("fcntl", unimplementedFunc),
489    /* 93 */ SyscallDesc("select", unimplementedFunc),
490    /* 94 */ SyscallDesc("setfsgid32", unimplementedFunc),
491    /* 95 */ SyscallDesc("fsync", unimplementedFunc),
492    /* 96 */ SyscallDesc("setpriority", unimplementedFunc),
493    /* 97 */ SyscallDesc("socket", unimplementedFunc),
494    /* 98 */ SyscallDesc("connect", unimplementedFunc),
495    /* 99 */ SyscallDesc("accept", unimplementedFunc),
496    /* 100 */ SyscallDesc("getpriority", unimplementedFunc),
497    /* 101 */ SyscallDesc("rt_sigreturn", unimplementedFunc),
498    /* 102 */ SyscallDesc("rt_sigaction", ignoreFunc),
499    /* 103 */ SyscallDesc("rt_sigprocmask", ignoreFunc),
500    /* 104 */ SyscallDesc("rt_sigpending", unimplementedFunc),
501    /* 105 */ SyscallDesc("rt_sigtimedwait", unimplementedFunc),
502    /* 106 */ SyscallDesc("rt_sigqueueinfo", unimplementedFunc),
503    /* 107 */ SyscallDesc("rt_sigsuspend", unimplementedFunc),
504    /* 108 */ SyscallDesc("setresuid", unimplementedFunc),
505    /* 109 */ SyscallDesc("getresuid", getresuidFunc),
506    /* 110 */ SyscallDesc("setresgid", ignoreFunc),
507    /* 111 */ SyscallDesc("getresgid", unimplementedFunc),
508    /* 112 */ SyscallDesc("setregid32", unimplementedFunc),
509    /* 113 */ SyscallDesc("recvmsg", unimplementedFunc),
510    /* 114 */ SyscallDesc("sendmsg", unimplementedFunc),
511    /* 115 */ SyscallDesc("getgroups32", unimplementedFunc),
512    /* 116 */ SyscallDesc("gettimeofday", gettimeofdayFunc<SparcLinux>),
513    /* 117 */ SyscallDesc("getrusage", unimplementedFunc),
514    /* 118 */ SyscallDesc("getsockopt", unimplementedFunc),
515    /* 119 */ SyscallDesc("getcwd", unimplementedFunc),
516    /* 120 */ SyscallDesc("readv", unimplementedFunc),
517    /* 121 */ SyscallDesc("writev", unimplementedFunc),
518    /* 122 */ SyscallDesc("settimeofday", unimplementedFunc),
519    /* 123 */ SyscallDesc("fchown", unimplementedFunc),
520    /* 124 */ SyscallDesc("fchmod", unimplementedFunc),
521    /* 125 */ SyscallDesc("recvfrom", unimplementedFunc),
522    /* 126 */ SyscallDesc("setreuid", unimplementedFunc),
523    /* 127 */ SyscallDesc("setregid", unimplementedFunc),
524    /* 128 */ SyscallDesc("rename", renameFunc),
525    /* 129 */ SyscallDesc("truncate", unimplementedFunc),
526    /* 130 */ SyscallDesc("ftruncate", unimplementedFunc),
527    /* 131 */ SyscallDesc("flock", unimplementedFunc),
528    /* 132 */ SyscallDesc("lstat64", unimplementedFunc),
529    /* 133 */ SyscallDesc("sendto", unimplementedFunc),
530    /* 134 */ SyscallDesc("shutdown", unimplementedFunc),
531    /* 135 */ SyscallDesc("socketpair", unimplementedFunc),
532    /* 136 */ SyscallDesc("mkdir", mkdirFunc),
533    /* 137 */ SyscallDesc("rmdir", unimplementedFunc),
534    /* 138 */ SyscallDesc("utimes", unimplementedFunc),
535    /* 139 */ SyscallDesc("stat64", unimplementedFunc),
536    /* 140 */ SyscallDesc("sendfile64", unimplementedFunc),
537    /* 141 */ SyscallDesc("getpeername", unimplementedFunc),
538    /* 142 */ SyscallDesc("futex", unimplementedFunc),
539    /* 143 */ SyscallDesc("gettid", unimplementedFunc),
540    /* 144 */ SyscallDesc("getrlimit", unimplementedFunc),
541    /* 145 */ SyscallDesc("setrlimit", unimplementedFunc),
542    /* 146 */ SyscallDesc("pivot_root", unimplementedFunc),
543    /* 147 */ SyscallDesc("prctl", unimplementedFunc),
544    /* 148 */ SyscallDesc("pciconfig_read", unimplementedFunc),
545    /* 149 */ SyscallDesc("pciconfig_write", unimplementedFunc),
546    /* 150 */ SyscallDesc("getsockname", unimplementedFunc),
547    /* 151 */ SyscallDesc("inotify_init", unimplementedFunc),
548    /* 152 */ SyscallDesc("inotify_add_watch", unimplementedFunc),
549    /* 153 */ SyscallDesc("poll", unimplementedFunc),
550    /* 154 */ SyscallDesc("getdents64", unimplementedFunc),
551    /* 155 */ SyscallDesc("fcntl64", unimplementedFunc),
552    /* 156 */ SyscallDesc("inotify_rm_watch", unimplementedFunc),
553    /* 157 */ SyscallDesc("statfs", unimplementedFunc),
554    /* 158 */ SyscallDesc("fstatfs", unimplementedFunc),
555    /* 159 */ SyscallDesc("umount", unimplementedFunc),
556    /* 160 */ SyscallDesc("sched_set_affinity", unimplementedFunc),
557    /* 161 */ SyscallDesc("sched_get_affinity", unimplementedFunc),
558    /* 162 */ SyscallDesc("getdomainname", unimplementedFunc),
559    /* 163 */ SyscallDesc("setdomainname", unimplementedFunc),
560    /* 164 */ SyscallDesc("utrap_install", unimplementedFunc),
561    /* 165 */ SyscallDesc("quotactl", unimplementedFunc),
562    /* 166 */ SyscallDesc("set_tid_address", unimplementedFunc),
563    /* 167 */ SyscallDesc("mount", unimplementedFunc),
564    /* 168 */ SyscallDesc("ustat", unimplementedFunc),
565    /* 169 */ SyscallDesc("setxattr", unimplementedFunc),
566    /* 170 */ SyscallDesc("lsetxattr", unimplementedFunc),
567    /* 171 */ SyscallDesc("fsetxattr", unimplementedFunc),
568    /* 172 */ SyscallDesc("getxattr", unimplementedFunc),
569    /* 173 */ SyscallDesc("lgetxattr", unimplementedFunc),
570    /* 174 */ SyscallDesc("getdents", unimplementedFunc),
571    /* 175 */ SyscallDesc("setsid", unimplementedFunc),
572    /* 176 */ SyscallDesc("fchdir", unimplementedFunc),
573    /* 177 */ SyscallDesc("fgetxattr", unimplementedFunc),
574    /* 178 */ SyscallDesc("listxattr", unimplementedFunc),
575    /* 179 */ SyscallDesc("llistxattr", unimplementedFunc),
576    /* 180 */ SyscallDesc("flistxattr", unimplementedFunc),
577    /* 181 */ SyscallDesc("removexattr", unimplementedFunc),
578    /* 182 */ SyscallDesc("lremovexattr", unimplementedFunc),
579    /* 183 */ SyscallDesc("sigpending", unimplementedFunc),
580    /* 184 */ SyscallDesc("query_module", unimplementedFunc),
581    /* 185 */ SyscallDesc("setpgid", unimplementedFunc),
582    /* 186 */ SyscallDesc("fremovexattr", unimplementedFunc),
583    /* 187 */ SyscallDesc("tkill", unimplementedFunc),
584    /* 188 */ SyscallDesc("exit_group", exitGroupFunc),
585    /* 189 */ SyscallDesc("uname", unameFunc),
586    /* 190 */ SyscallDesc("init_module", unimplementedFunc),
587    /* 191 */ SyscallDesc("personality", unimplementedFunc),
588    /* 192 */ SyscallDesc("remap_file_pages", unimplementedFunc),
589    /* 193 */ SyscallDesc("epoll_create", unimplementedFunc),
590    /* 194 */ SyscallDesc("epoll_ctl", unimplementedFunc),
591    /* 195 */ SyscallDesc("epoll_wait", unimplementedFunc),
592    /* 196 */ SyscallDesc("ioprio_set", unimplementedFunc),
593    /* 197 */ SyscallDesc("getppid", getppidFunc),
594    /* 198 */ SyscallDesc("sigaction", ignoreFunc),
595    /* 199 */ SyscallDesc("sgetmask", unimplementedFunc),
596    /* 200 */ SyscallDesc("ssetmask", unimplementedFunc),
597    /* 201 */ SyscallDesc("sigsuspend", unimplementedFunc),
598    /* 202 */ SyscallDesc("oldlstat", unimplementedFunc),
599    /* 203 */ SyscallDesc("uselib", unimplementedFunc),
600    /* 204 */ SyscallDesc("readdir", unimplementedFunc),
601    /* 205 */ SyscallDesc("readahead", unimplementedFunc),
602    /* 206 */ SyscallDesc("socketcall", unimplementedFunc),
603    /* 207 */ SyscallDesc("syslog", unimplementedFunc),
604    /* 208 */ SyscallDesc("lookup_dcookie", unimplementedFunc),
605    /* 209 */ SyscallDesc("fadvise64", unimplementedFunc),
606    /* 210 */ SyscallDesc("fadvise64_64", unimplementedFunc),
607    /* 211 */ SyscallDesc("tgkill", unimplementedFunc),
608    /* 212 */ SyscallDesc("waitpid", unimplementedFunc),
609    /* 213 */ SyscallDesc("swapoff", unimplementedFunc),
610    /* 214 */ SyscallDesc("sysinfo", sysinfoFunc<SparcLinux>),
611    /* 215 */ SyscallDesc("ipc", unimplementedFunc),
612    /* 216 */ SyscallDesc("sigreturn", unimplementedFunc),
613    /* 217 */ SyscallDesc("clone", cloneFunc),
614    /* 218 */ SyscallDesc("ioprio_get", unimplementedFunc),
615    /* 219 */ SyscallDesc("adjtimex", unimplementedFunc),
616    /* 220 */ SyscallDesc("sigprocmask", unimplementedFunc),
617    /* 221 */ SyscallDesc("create_module", unimplementedFunc),
618    /* 222 */ SyscallDesc("delete_module", unimplementedFunc),
619    /* 223 */ SyscallDesc("get_kernel_syms", unimplementedFunc),
620    /* 224 */ SyscallDesc("getpgid", unimplementedFunc),
621    /* 225 */ SyscallDesc("bdflush", unimplementedFunc),
622    /* 226 */ SyscallDesc("sysfs", unimplementedFunc),
623    /* 227 */ SyscallDesc("afs_syscall", unimplementedFunc),
624    /* 228 */ SyscallDesc("setfsuid", unimplementedFunc),
625    /* 229 */ SyscallDesc("setfsgid", unimplementedFunc),
626    /* 230 */ SyscallDesc("_newselect", unimplementedFunc),
627    /* 231 */ SyscallDesc("time", ignoreFunc),
628    /* 232 */ SyscallDesc("oldstat", unimplementedFunc),
629    /* 233 */ SyscallDesc("stime", unimplementedFunc),
630    /* 234 */ SyscallDesc("statfs64", unimplementedFunc),
631    /* 235 */ SyscallDesc("fstatfs64", unimplementedFunc),
632    /* 236 */ SyscallDesc("_llseek", _llseekFunc),
633    /* 237 */ SyscallDesc("mlock", unimplementedFunc),
634    /* 238 */ SyscallDesc("munlock", unimplementedFunc),
635    /* 239 */ SyscallDesc("mlockall", unimplementedFunc),
636    /* 240 */ SyscallDesc("munlockall", unimplementedFunc),
637    /* 241 */ SyscallDesc("sched_setparam", unimplementedFunc),
638    /* 242 */ SyscallDesc("sched_getparam", unimplementedFunc),
639    /* 243 */ SyscallDesc("sched_setscheduler", unimplementedFunc),
640    /* 244 */ SyscallDesc("sched_getscheduler", unimplementedFunc),
641    /* 245 */ SyscallDesc("sched_yield", unimplementedFunc),
642    /* 246 */ SyscallDesc("sched_get_priority_max", unimplementedFunc),
643    /* 247 */ SyscallDesc("sched_get_priority_min", unimplementedFunc),
644    /* 248 */ SyscallDesc("sched_rr_get_interval", unimplementedFunc),
645    /* 249 */ SyscallDesc("nanosleep", unimplementedFunc),
646    /* 250 */ SyscallDesc("mremap", mremapFunc<SparcLinux>),
647    /* 251 */ SyscallDesc("_sysctl", unimplementedFunc),
648    /* 252 */ SyscallDesc("getsid", unimplementedFunc),
649    /* 253 */ SyscallDesc("fdatasync", unimplementedFunc),
650    /* 254 */ SyscallDesc("nfsservctl", unimplementedFunc),
651    /* 255 */ SyscallDesc("aplib", unimplementedFunc),
652    /* 256 */ SyscallDesc("clock_settime", unimplementedFunc),
653    /* 257 */ SyscallDesc("clock_gettime", unimplementedFunc),
654    /* 258 */ SyscallDesc("clock_getres", unimplementedFunc),
655    /* 259 */ SyscallDesc("clock_nanosleep", unimplementedFunc),
656    /* 260 */ SyscallDesc("sched_getaffinity", unimplementedFunc),
657    /* 261 */ SyscallDesc("sched_setaffinity", unimplementedFunc),
658    /* 262 */ SyscallDesc("timer_settime", unimplementedFunc),
659    /* 263 */ SyscallDesc("timer_gettime", unimplementedFunc),
660    /* 264 */ SyscallDesc("timer_getoverrun", unimplementedFunc),
661    /* 265 */ SyscallDesc("timer_delete", unimplementedFunc),
662    /* 266 */ SyscallDesc("timer_create", unimplementedFunc),
663    /* 267 */ SyscallDesc("vserver", unimplementedFunc),
664    /* 268 */ SyscallDesc("io_setup", unimplementedFunc),
665    /* 269 */ SyscallDesc("io_destroy", unimplementedFunc),
666    /* 270 */ SyscallDesc("io_submit", unimplementedFunc),
667    /* 271 */ SyscallDesc("io_cancel", unimplementedFunc),
668    /* 272 */ SyscallDesc("io_getevents", unimplementedFunc),
669    /* 273 */ SyscallDesc("mq_open", unimplementedFunc),
670    /* 274 */ SyscallDesc("mq_unlink", unimplementedFunc),
671    /* 275 */ SyscallDesc("mq_timedsend", unimplementedFunc),
672    /* 276 */ SyscallDesc("mq_timedreceive", unimplementedFunc),
673    /* 277 */ SyscallDesc("mq_notify", unimplementedFunc),
674    /* 278 */ SyscallDesc("mq_getsetattr", unimplementedFunc),
675    /* 279 */ SyscallDesc("waitid", unimplementedFunc),
676    /* 280 */ SyscallDesc("sys_setaltroot", unimplementedFunc),
677    /* 281 */ SyscallDesc("add_key", unimplementedFunc),
678    /* 282 */ SyscallDesc("request_key", unimplementedFunc),
679    /* 283 */ SyscallDesc("keyctl", unimplementedFunc)
680};
681
682const int SparcLinuxProcess::Num_Syscall_Descs =
683    sizeof(SparcLinuxProcess::syscallDescs) / sizeof(SyscallDesc);
684
685} // namespace SparcISA
686