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

Generated on Fri Jun 9 2017 13:03:40 for gem5 by doxygen 1.8.6