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