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