gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
process.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com>
3  * All rights reserved.
4  *
5  * This software was developed by the University of Cambridge Computer
6  * Laboratory as part of the CTSRD Project, with support from the UK Higher
7  * Education Innovation Fund (HEIF).
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions are
11  * met: redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer;
13  * redistributions in binary form must reproduce the above copyright
14  * notice, this list of conditions and the following disclaimer in the
15  * documentation and/or other materials provided with the distribution;
16  * neither the name of the copyright holders nor the names of its
17  * contributors may be used to endorse or promote products derived from
18  * this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
34 
35 #include <sys/mman.h>
36 #include <sys/param.h>
37 #include <sys/syscall.h>
38 #include <sys/sysctl.h>
39 #include <sys/types.h>
40 #include <utime.h>
41 
43 #include "arch/arm/isa_traits.hh"
44 #include "base/trace.hh"
45 #include "cpu/thread_context.hh"
46 #include "kern/freebsd/freebsd.hh"
47 #include "sim/process.hh"
48 #include "sim/syscall_desc.hh"
49 #include "sim/syscall_emul.hh"
50 #include "sim/system.hh"
51 
52 using namespace std;
53 using namespace ArmISA;
54 
55 static SyscallReturn
56 issetugidFunc(SyscallDesc *desc, int callnum, Process *process,
57  ThreadContext *tc)
58 {
59 
60  return 0;
61 }
62 
63 static SyscallReturn
64 sysctlFunc(SyscallDesc *desc, int callnum, Process *process,
65  ThreadContext *tc)
66 {
67  int index = 0;
68  uint64_t ret;
69 
70  Addr namep = process->getSyscallArg(tc, index);
71  size_t namelen = process->getSyscallArg(tc, index);
72  Addr oldp = process->getSyscallArg(tc, index);
73  Addr oldlenp = process->getSyscallArg(tc, index);
74  Addr newp = process->getSyscallArg(tc, index);
75  size_t newlen = process->getSyscallArg(tc, index);
76 
77  BufferArg buf(namep, sizeof(size_t));
78  BufferArg buf2(oldp, sizeof(size_t));
79  BufferArg buf3(oldlenp, sizeof(size_t));
80  BufferArg buf4(newp, sizeof(size_t));
81 
82  buf.copyIn(tc->getMemProxy());
83  buf2.copyIn(tc->getMemProxy());
84  buf3.copyIn(tc->getMemProxy());
85 
86  void *hnewp = NULL;
87  if (newp) {
88  buf4.copyIn(tc->getMemProxy());
89  hnewp = (void *)buf4.bufferPtr();
90  }
91 
92  uint32_t *hnamep = (uint32_t *)buf.bufferPtr();
93  void *holdp = (void *)buf2.bufferPtr();
94  size_t *holdlenp = (size_t *)buf3.bufferPtr();
95 
96  ret = sysctl((int *)hnamep, namelen, holdp, holdlenp, hnewp, newlen);
97 
98  buf.copyOut(tc->getMemProxy());
99  buf2.copyOut(tc->getMemProxy());
100  buf3.copyOut(tc->getMemProxy());
101  if (newp)
102  buf4.copyOut(tc->getMemProxy());
103 
104  return (ret);
105 }
106 
108  /* 0 */ SyscallDesc("unused#000", unimplementedFunc),
109  /* 1 */ SyscallDesc("unused#001", unimplementedFunc),
110  /* 2 */ SyscallDesc("unused#002", unimplementedFunc),
111  /* 3 */ SyscallDesc("unused#003", unimplementedFunc),
112  /* 4 */ SyscallDesc("unused#004", unimplementedFunc),
113  /* 5 */ SyscallDesc("unused#005", unimplementedFunc),
114  /* 6 */ SyscallDesc("unused#006", unimplementedFunc),
115  /* 7 */ SyscallDesc("unused#007", unimplementedFunc),
116  /* 8 */ SyscallDesc("unused#008", unimplementedFunc),
117  /* 9 */ SyscallDesc("unused#009", unimplementedFunc),
118  /* 10 */ SyscallDesc("unused#010", unimplementedFunc),
119  /* 11 */ SyscallDesc("unused#011", unimplementedFunc),
120  /* 12 */ SyscallDesc("unused#012", unimplementedFunc),
121  /* 13 */ SyscallDesc("unused#013", unimplementedFunc),
122  /* 14 */ SyscallDesc("unused#014", unimplementedFunc),
123  /* 15 */ SyscallDesc("unused#015", unimplementedFunc),
124  /* 16 */ SyscallDesc("unused#016", unimplementedFunc),
125  /* 17 */ SyscallDesc("unused#017", unimplementedFunc),
126  /* 18 */ SyscallDesc("unused#018", unimplementedFunc),
127  /* 19 */ SyscallDesc("unused#019", unimplementedFunc),
128  /* 20 */ SyscallDesc("unused#020", unimplementedFunc),
129  /* 21 */ SyscallDesc("unused#021", unimplementedFunc),
130  /* 22 */ SyscallDesc("unused#022", unimplementedFunc),
131  /* 23 */ SyscallDesc("unused#023", unimplementedFunc),
132  /* 24 */ SyscallDesc("unused#024", unimplementedFunc),
133  /* 25 */ SyscallDesc("unused#025", unimplementedFunc),
134  /* 26 */ SyscallDesc("unused#026", unimplementedFunc),
135  /* 27 */ SyscallDesc("unused#027", unimplementedFunc),
136  /* 28 */ SyscallDesc("unused#028", unimplementedFunc),
137  /* 29 */ SyscallDesc("unused#029", unimplementedFunc),
138  /* 30 */ SyscallDesc("unused#030", unimplementedFunc),
139  /* 31 */ SyscallDesc("unused#031", unimplementedFunc),
140  /* 32 */ SyscallDesc("unused#032", unimplementedFunc),
141  /* 33 */ SyscallDesc("unused#033", unimplementedFunc),
142  /* 34 */ SyscallDesc("unused#034", unimplementedFunc),
143  /* 35 */ SyscallDesc("unused#035", unimplementedFunc),
144  /* 36 */ SyscallDesc("unused#036", unimplementedFunc),
145  /* 37 */ SyscallDesc("unused#037", unimplementedFunc),
146  /* 38 */ SyscallDesc("unused#038", unimplementedFunc),
147  /* 39 */ SyscallDesc("unused#039", unimplementedFunc),
148  /* 40 */ SyscallDesc("unused#040", unimplementedFunc),
149  /* 41 */ SyscallDesc("unused#041", unimplementedFunc),
150  /* 42 */ SyscallDesc("unused#042", unimplementedFunc),
151  /* 43 */ SyscallDesc("unused#043", unimplementedFunc),
152  /* 44 */ SyscallDesc("unused#044", unimplementedFunc),
153  /* 45 */ SyscallDesc("unused#045", unimplementedFunc),
154  /* 46 */ SyscallDesc("unused#046", unimplementedFunc),
155  /* 47 */ SyscallDesc("unused#047", unimplementedFunc),
156  /* 48 */ SyscallDesc("unused#048", unimplementedFunc),
157  /* 49 */ SyscallDesc("unused#049", unimplementedFunc),
158  /* 50 */ SyscallDesc("unused#050", unimplementedFunc),
159  /* 51 */ SyscallDesc("unused#051", unimplementedFunc),
160  /* 52 */ SyscallDesc("unused#052", unimplementedFunc),
161  /* 53 */ SyscallDesc("unused#053", unimplementedFunc),
162  /* 54 */ SyscallDesc("unused#054", unimplementedFunc),
163  /* 55 */ SyscallDesc("unused#055", unimplementedFunc),
164  /* 56 */ SyscallDesc("unused#056", unimplementedFunc),
165  /* 57 */ SyscallDesc("unused#057", unimplementedFunc),
166  /* 58 */ SyscallDesc("unused#058", unimplementedFunc),
167  /* 59 */ SyscallDesc("unused#059", unimplementedFunc),
168  /* 60 */ SyscallDesc("unused#060", unimplementedFunc),
169  /* 61 */ SyscallDesc("unused#061", unimplementedFunc),
170  /* 62 */ SyscallDesc("unused#062", unimplementedFunc),
171  /* 63 */ SyscallDesc("unused#063", unimplementedFunc),
172  /* 64 */ SyscallDesc("unused#064", unimplementedFunc),
173  /* 65 */ SyscallDesc("unused#065", unimplementedFunc),
174  /* 66 */ SyscallDesc("unused#066", unimplementedFunc),
175  /* 67 */ SyscallDesc("unused#067", unimplementedFunc),
176  /* 68 */ SyscallDesc("unused#068", unimplementedFunc),
177  /* 69 */ SyscallDesc("unused#069", unimplementedFunc),
178  /* 70 */ SyscallDesc("unused#070", unimplementedFunc),
179  /* 71 */ SyscallDesc("unused#071", unimplementedFunc),
180  /* 72 */ SyscallDesc("unused#072", unimplementedFunc),
181  /* 73 */ SyscallDesc("unused#073", unimplementedFunc),
182  /* 74 */ SyscallDesc("unused#074", unimplementedFunc),
183  /* 75 */ SyscallDesc("unused#075", unimplementedFunc),
184  /* 76 */ SyscallDesc("unused#076", unimplementedFunc),
185  /* 77 */ SyscallDesc("unused#077", unimplementedFunc),
186  /* 78 */ SyscallDesc("unused#078", unimplementedFunc),
187  /* 79 */ SyscallDesc("unused#079", unimplementedFunc),
188  /* 80 */ SyscallDesc("unused#080", unimplementedFunc),
189  /* 81 */ SyscallDesc("unused#081", unimplementedFunc),
190  /* 82 */ SyscallDesc("unused#082", unimplementedFunc),
191  /* 83 */ SyscallDesc("unused#083", unimplementedFunc),
192  /* 84 */ SyscallDesc("unused#084", unimplementedFunc),
193  /* 85 */ SyscallDesc("unused#085", unimplementedFunc),
194  /* 86 */ SyscallDesc("unused#086", unimplementedFunc),
195  /* 87 */ SyscallDesc("unused#087", unimplementedFunc),
196  /* 88 */ SyscallDesc("unused#088", unimplementedFunc),
197  /* 89 */ SyscallDesc("unused#089", unimplementedFunc),
198  /* 90 */ SyscallDesc("unused#090", unimplementedFunc),
199  /* 91 */ SyscallDesc("unused#091", unimplementedFunc),
200  /* 92 */ SyscallDesc("unused#092", unimplementedFunc),
201  /* 93 */ SyscallDesc("unused#093", unimplementedFunc),
202  /* 94 */ SyscallDesc("unused#094", unimplementedFunc),
203  /* 95 */ SyscallDesc("unused#095", unimplementedFunc),
204  /* 96 */ SyscallDesc("unused#096", unimplementedFunc),
205  /* 97 */ SyscallDesc("unused#097", unimplementedFunc),
206  /* 98 */ SyscallDesc("unused#098", unimplementedFunc),
207  /* 99 */ SyscallDesc("unused#099", unimplementedFunc),
208  /* 100 */ SyscallDesc("unused#100", unimplementedFunc),
209  /* 101 */ SyscallDesc("unused#101", unimplementedFunc),
210  /* 102 */ SyscallDesc("unused#102", unimplementedFunc),
211  /* 103 */ SyscallDesc("unused#103", unimplementedFunc),
212  /* 104 */ SyscallDesc("unused#104", unimplementedFunc),
213  /* 105 */ SyscallDesc("unused#105", unimplementedFunc),
214  /* 106 */ SyscallDesc("unused#106", unimplementedFunc),
215  /* 107 */ SyscallDesc("unused#107", unimplementedFunc),
216  /* 108 */ SyscallDesc("unused#108", unimplementedFunc),
217  /* 109 */ SyscallDesc("unused#109", unimplementedFunc),
218  /* 110 */ SyscallDesc("unused#110", unimplementedFunc),
219  /* 111 */ SyscallDesc("unused#111", unimplementedFunc),
220  /* 112 */ SyscallDesc("unused#112", unimplementedFunc),
221  /* 113 */ SyscallDesc("unused#113", unimplementedFunc),
222  /* 114 */ SyscallDesc("unused#114", unimplementedFunc),
223  /* 115 */ SyscallDesc("unused#115", unimplementedFunc),
224  /* 116 */ SyscallDesc("unused#116", unimplementedFunc),
225  /* 117 */ SyscallDesc("unused#117", unimplementedFunc),
226  /* 118 */ SyscallDesc("unused#118", unimplementedFunc),
227  /* 119 */ SyscallDesc("unused#119", unimplementedFunc),
228  /* 120 */ SyscallDesc("unused#120", unimplementedFunc),
229  /* 121 */ SyscallDesc("unused#121", unimplementedFunc),
230  /* 122 */ SyscallDesc("unused#122", unimplementedFunc),
231  /* 123 */ SyscallDesc("unused#123", unimplementedFunc),
232  /* 124 */ SyscallDesc("unused#124", unimplementedFunc),
233  /* 125 */ SyscallDesc("unused#125", unimplementedFunc),
234  /* 126 */ SyscallDesc("unused#126", unimplementedFunc),
235  /* 127 */ SyscallDesc("unused#127", unimplementedFunc),
236  /* 128 */ SyscallDesc("unused#128", unimplementedFunc),
237  /* 129 */ SyscallDesc("unused#129", unimplementedFunc),
238  /* 130 */ SyscallDesc("unused#130", unimplementedFunc),
239  /* 131 */ SyscallDesc("unused#131", unimplementedFunc),
240  /* 132 */ SyscallDesc("unused#132", unimplementedFunc),
241  /* 133 */ SyscallDesc("unused#133", unimplementedFunc),
242  /* 134 */ SyscallDesc("unused#134", unimplementedFunc),
243  /* 135 */ SyscallDesc("unused#135", unimplementedFunc),
244  /* 136 */ SyscallDesc("unused#136", unimplementedFunc),
245  /* 137 */ SyscallDesc("unused#137", unimplementedFunc),
246  /* 138 */ SyscallDesc("unused#138", unimplementedFunc),
247  /* 139 */ SyscallDesc("unused#139", unimplementedFunc),
248  /* 140 */ SyscallDesc("unused#140", unimplementedFunc),
249  /* 141 */ SyscallDesc("unused#141", unimplementedFunc),
250  /* 142 */ SyscallDesc("unused#142", unimplementedFunc),
251  /* 143 */ SyscallDesc("unused#143", unimplementedFunc),
252  /* 144 */ SyscallDesc("unused#144", unimplementedFunc),
253  /* 145 */ SyscallDesc("unused#145", unimplementedFunc),
254  /* 146 */ SyscallDesc("unused#146", unimplementedFunc),
255  /* 147 */ SyscallDesc("unused#147", unimplementedFunc),
256  /* 148 */ SyscallDesc("unused#148", unimplementedFunc),
257  /* 149 */ SyscallDesc("unused#149", unimplementedFunc),
258  /* 150 */ SyscallDesc("unused#150", unimplementedFunc),
259  /* 151 */ SyscallDesc("unused#151", unimplementedFunc),
260  /* 152 */ SyscallDesc("unused#152", unimplementedFunc),
261  /* 153 */ SyscallDesc("unused#153", unimplementedFunc),
262  /* 154 */ SyscallDesc("unused#154", unimplementedFunc),
263  /* 155 */ SyscallDesc("unused#155", unimplementedFunc),
264  /* 156 */ SyscallDesc("unused#156", unimplementedFunc),
265  /* 157 */ SyscallDesc("unused#157", unimplementedFunc),
266  /* 158 */ SyscallDesc("unused#158", unimplementedFunc),
267  /* 159 */ SyscallDesc("unused#159", unimplementedFunc),
268  /* 160 */ SyscallDesc("unused#160", unimplementedFunc),
269  /* 161 */ SyscallDesc("unused#161", unimplementedFunc),
270  /* 162 */ SyscallDesc("unused#162", unimplementedFunc),
271  /* 163 */ SyscallDesc("unused#163", unimplementedFunc),
272  /* 164 */ SyscallDesc("unused#164", unimplementedFunc),
273  /* 165 */ SyscallDesc("unused#165", unimplementedFunc),
274  /* 166 */ SyscallDesc("unused#166", unimplementedFunc),
275  /* 167 */ SyscallDesc("unused#167", unimplementedFunc),
276  /* 168 */ SyscallDesc("unused#168", unimplementedFunc),
277  /* 169 */ SyscallDesc("unused#169", unimplementedFunc),
278  /* 170 */ SyscallDesc("unused#170", unimplementedFunc),
279  /* 171 */ SyscallDesc("unused#171", unimplementedFunc),
280  /* 172 */ SyscallDesc("unused#172", unimplementedFunc),
281  /* 173 */ SyscallDesc("unused#173", unimplementedFunc),
282  /* 174 */ SyscallDesc("unused#174", unimplementedFunc),
283  /* 175 */ SyscallDesc("unused#175", unimplementedFunc),
284  /* 176 */ SyscallDesc("unused#176", unimplementedFunc),
285  /* 177 */ SyscallDesc("unused#177", unimplementedFunc),
286  /* 178 */ SyscallDesc("unused#178", unimplementedFunc),
287  /* 179 */ SyscallDesc("unused#179", unimplementedFunc),
288  /* 180 */ SyscallDesc("unused#180", unimplementedFunc),
289  /* 181 */ SyscallDesc("unused#181", unimplementedFunc),
290  /* 182 */ SyscallDesc("unused#182", unimplementedFunc),
291  /* 183 */ SyscallDesc("unused#183", unimplementedFunc),
292  /* 184 */ SyscallDesc("unused#184", unimplementedFunc),
293  /* 185 */ SyscallDesc("unused#185", unimplementedFunc),
294  /* 186 */ SyscallDesc("unused#186", unimplementedFunc),
295  /* 187 */ SyscallDesc("unused#187", unimplementedFunc),
296  /* 188 */ SyscallDesc("unused#188", unimplementedFunc),
297  /* 189 */ SyscallDesc("unused#189", unimplementedFunc),
298  /* 190 */ SyscallDesc("unused#190", unimplementedFunc),
299  /* 191 */ SyscallDesc("unused#191", unimplementedFunc),
300  /* 192 */ SyscallDesc("unused#192", unimplementedFunc),
301  /* 193 */ SyscallDesc("unused#193", unimplementedFunc),
302  /* 194 */ SyscallDesc("unused#194", unimplementedFunc),
303  /* 195 */ SyscallDesc("unused#195", unimplementedFunc),
304  /* 196 */ SyscallDesc("unused#196", unimplementedFunc),
305  /* 197 */ SyscallDesc("unused#197", unimplementedFunc),
306  /* 198 */ SyscallDesc("unused#198", unimplementedFunc),
307  /* 199 */ SyscallDesc("unused#199", unimplementedFunc),
308  /* 200 */ SyscallDesc("unused#200", unimplementedFunc),
309  /* 201 */ SyscallDesc("unused#201", unimplementedFunc),
310  /* 202 */ SyscallDesc("unused#202", unimplementedFunc),
311  /* 203 */ SyscallDesc("unused#203", unimplementedFunc),
312  /* 204 */ SyscallDesc("unused#204", unimplementedFunc),
313  /* 205 */ SyscallDesc("unused#205", unimplementedFunc),
314  /* 206 */ SyscallDesc("unused#206", unimplementedFunc),
315  /* 207 */ SyscallDesc("unused#207", unimplementedFunc),
316  /* 208 */ SyscallDesc("unused#208", unimplementedFunc),
317  /* 209 */ SyscallDesc("unused#209", unimplementedFunc),
318  /* 210 */ SyscallDesc("unused#210", unimplementedFunc),
319  /* 211 */ SyscallDesc("unused#211", unimplementedFunc),
320  /* 212 */ SyscallDesc("unused#212", unimplementedFunc),
321  /* 213 */ SyscallDesc("unused#213", unimplementedFunc),
322  /* 214 */ SyscallDesc("unused#214", unimplementedFunc),
323  /* 215 */ SyscallDesc("unused#215", unimplementedFunc),
324  /* 216 */ SyscallDesc("unused#216", unimplementedFunc),
325  /* 217 */ SyscallDesc("unused#217", unimplementedFunc),
326  /* 218 */ SyscallDesc("unused#218", unimplementedFunc),
327  /* 219 */ SyscallDesc("unused#219", unimplementedFunc),
328  /* 220 */ SyscallDesc("unused#220", unimplementedFunc),
329  /* 221 */ SyscallDesc("unused#221", unimplementedFunc),
330  /* 222 */ SyscallDesc("unused#222", unimplementedFunc),
331  /* 223 */ SyscallDesc("unused#223", unimplementedFunc),
332  /* 224 */ SyscallDesc("unused#224", unimplementedFunc),
333  /* 225 */ SyscallDesc("unused#225", unimplementedFunc),
334  /* 226 */ SyscallDesc("unused#226", unimplementedFunc),
335  /* 227 */ SyscallDesc("unused#227", unimplementedFunc),
336  /* 228 */ SyscallDesc("unused#228", unimplementedFunc),
337  /* 229 */ SyscallDesc("unused#229", unimplementedFunc),
338  /* 230 */ SyscallDesc("unused#230", unimplementedFunc),
339  /* 231 */ SyscallDesc("unused#231", unimplementedFunc),
340  /* 232 */ SyscallDesc("unused#232", unimplementedFunc),
341  /* 233 */ SyscallDesc("unused#233", unimplementedFunc),
342  /* 234 */ SyscallDesc("unused#234", unimplementedFunc),
343  /* 235 */ SyscallDesc("unused#235", unimplementedFunc),
344  /* 236 */ SyscallDesc("unused#236", unimplementedFunc),
345  /* 237 */ SyscallDesc("unused#237", unimplementedFunc),
346  /* 238 */ SyscallDesc("unused#238", unimplementedFunc),
347  /* 239 */ SyscallDesc("unused#239", unimplementedFunc),
348  /* 240 */ SyscallDesc("unused#240", unimplementedFunc),
349  /* 241 */ SyscallDesc("unused#241", unimplementedFunc),
350  /* 242 */ SyscallDesc("unused#242", unimplementedFunc),
351  /* 243 */ SyscallDesc("unused#243", unimplementedFunc),
352  /* 244 */ SyscallDesc("unused#244", unimplementedFunc),
353  /* 245 */ SyscallDesc("unused#245", unimplementedFunc),
354  /* 246 */ SyscallDesc("unused#246", unimplementedFunc),
355  /* 247 */ SyscallDesc("unused#247", unimplementedFunc),
356  /* 248 */ SyscallDesc("unused#248", unimplementedFunc),
357  /* 249 */ SyscallDesc("unused#249", unimplementedFunc),
358  /* 250 */ SyscallDesc("unused#250", unimplementedFunc),
359  /* 251 */ SyscallDesc("unused#251", unimplementedFunc),
360  /* 252 */ SyscallDesc("unused#252", unimplementedFunc),
361  /* 253 */ SyscallDesc("unused#253", unimplementedFunc),
362  /* 254 */ SyscallDesc("unused#254", unimplementedFunc),
363  /* 255 */ SyscallDesc("unused#255", unimplementedFunc),
364  /* 256 */ SyscallDesc("unused#256", unimplementedFunc),
365  /* 257 */ SyscallDesc("unused#257", unimplementedFunc),
366  /* 258 */ SyscallDesc("unused#258", unimplementedFunc),
367  /* 259 */ SyscallDesc("unused#259", unimplementedFunc),
368  /* 260 */ SyscallDesc("unused#260", unimplementedFunc),
369  /* 261 */ SyscallDesc("unused#261", unimplementedFunc),
370  /* 262 */ SyscallDesc("unused#262", unimplementedFunc),
371  /* 263 */ SyscallDesc("unused#263", unimplementedFunc),
372  /* 264 */ SyscallDesc("unused#264", unimplementedFunc),
373  /* 265 */ SyscallDesc("unused#265", unimplementedFunc),
374  /* 266 */ SyscallDesc("unused#266", unimplementedFunc),
375  /* 267 */ SyscallDesc("unused#267", unimplementedFunc),
376  /* 268 */ SyscallDesc("unused#268", unimplementedFunc),
377  /* 269 */ SyscallDesc("unused#269", unimplementedFunc),
378  /* 270 */ SyscallDesc("unused#270", unimplementedFunc),
379  /* 271 */ SyscallDesc("unused#271", unimplementedFunc),
380  /* 272 */ SyscallDesc("unused#272", unimplementedFunc),
381  /* 273 */ SyscallDesc("unused#273", unimplementedFunc),
382  /* 274 */ SyscallDesc("unused#274", unimplementedFunc),
383  /* 275 */ SyscallDesc("unused#275", unimplementedFunc),
384  /* 276 */ SyscallDesc("unused#276", unimplementedFunc),
385  /* 277 */ SyscallDesc("unused#277", unimplementedFunc),
386  /* 278 */ SyscallDesc("unused#278", unimplementedFunc),
387  /* 279 */ SyscallDesc("unused#279", unimplementedFunc),
388  /* 280 */ SyscallDesc("unused#280", unimplementedFunc),
389  /* 281 */ SyscallDesc("unused#281", unimplementedFunc),
390  /* 282 */ SyscallDesc("unused#282", unimplementedFunc),
391  /* 283 */ SyscallDesc("unused#283", unimplementedFunc),
392  /* 284 */ SyscallDesc("unused#284", unimplementedFunc),
393  /* 285 */ SyscallDesc("unused#285", unimplementedFunc),
394  /* 286 */ SyscallDesc("unused#286", unimplementedFunc),
395  /* 287 */ SyscallDesc("unused#287", unimplementedFunc),
396  /* 288 */ SyscallDesc("unused#288", unimplementedFunc),
397  /* 289 */ SyscallDesc("unused#289", unimplementedFunc),
398  /* 290 */ SyscallDesc("unused#290", unimplementedFunc),
399  /* 291 */ SyscallDesc("unused#291", unimplementedFunc),
400  /* 292 */ SyscallDesc("unused#292", unimplementedFunc),
401  /* 293 */ SyscallDesc("unused#293", unimplementedFunc),
402  /* 294 */ SyscallDesc("unused#294", unimplementedFunc),
403  /* 295 */ SyscallDesc("unused#295", unimplementedFunc),
404  /* 296 */ SyscallDesc("unused#296", unimplementedFunc),
405  /* 297 */ SyscallDesc("unused#297", unimplementedFunc),
406  /* 298 */ SyscallDesc("unused#298", unimplementedFunc),
407  /* 299 */ SyscallDesc("unused#299", unimplementedFunc),
408  /* 300 */ SyscallDesc("unused#300", unimplementedFunc),
409  /* 301 */ SyscallDesc("unused#301", unimplementedFunc),
410  /* 302 */ SyscallDesc("unused#302", unimplementedFunc),
411  /* 303 */ SyscallDesc("unused#303", unimplementedFunc),
412  /* 304 */ SyscallDesc("unused#304", unimplementedFunc),
413  /* 305 */ SyscallDesc("unused#305", unimplementedFunc),
414  /* 306 */ SyscallDesc("unused#306", unimplementedFunc),
415  /* 307 */ SyscallDesc("unused#307", unimplementedFunc),
416  /* 308 */ SyscallDesc("unused#308", unimplementedFunc),
417  /* 309 */ SyscallDesc("unused#309", unimplementedFunc),
418  /* 310 */ SyscallDesc("unused#310", unimplementedFunc),
419  /* 311 */ SyscallDesc("unused#311", unimplementedFunc),
420  /* 312 */ SyscallDesc("unused#312", unimplementedFunc),
421  /* 313 */ SyscallDesc("unused#313", unimplementedFunc),
422  /* 314 */ SyscallDesc("unused#314", unimplementedFunc),
423  /* 315 */ SyscallDesc("unused#315", unimplementedFunc),
424  /* 316 */ SyscallDesc("unused#316", unimplementedFunc),
425  /* 317 */ SyscallDesc("unused#317", unimplementedFunc),
426  /* 318 */ SyscallDesc("unused#318", unimplementedFunc),
427  /* 319 */ SyscallDesc("unused#319", unimplementedFunc),
428  /* 320 */ SyscallDesc("unused#320", unimplementedFunc),
429  /* 321 */ SyscallDesc("unused#321", unimplementedFunc),
430  /* 322 */ SyscallDesc("unused#322", unimplementedFunc),
431  /* 323 */ SyscallDesc("unused#323", unimplementedFunc),
432  /* 324 */ SyscallDesc("unused#324", unimplementedFunc),
433  /* 325 */ SyscallDesc("unused#325", unimplementedFunc),
434  /* 326 */ SyscallDesc("unused#326", unimplementedFunc),
435  /* 327 */ SyscallDesc("unused#327", unimplementedFunc),
436  /* 328 */ SyscallDesc("unused#328", unimplementedFunc),
437  /* 329 */ SyscallDesc("unused#329", unimplementedFunc),
438  /* 330 */ SyscallDesc("unused#330", unimplementedFunc),
439  /* 331 */ SyscallDesc("unused#331", unimplementedFunc),
440  /* 332 */ SyscallDesc("unused#332", unimplementedFunc),
441  /* 333 */ SyscallDesc("unused#333", unimplementedFunc),
442  /* 334 */ SyscallDesc("unused#334", unimplementedFunc),
443  /* 335 */ SyscallDesc("unused#335", unimplementedFunc),
444  /* 336 */ SyscallDesc("unused#336", unimplementedFunc),
445  /* 337 */ SyscallDesc("unused#337", unimplementedFunc),
446  /* 338 */ SyscallDesc("unused#338", unimplementedFunc),
447  /* 339 */ SyscallDesc("unused#339", unimplementedFunc),
448  /* 340 */ SyscallDesc("unused#340", unimplementedFunc),
449  /* 341 */ SyscallDesc("unused#341", unimplementedFunc),
450  /* 342 */ SyscallDesc("unused#342", unimplementedFunc),
451  /* 343 */ SyscallDesc("unused#343", unimplementedFunc),
452  /* 344 */ SyscallDesc("unused#344", unimplementedFunc),
453  /* 345 */ SyscallDesc("unused#345", unimplementedFunc),
454  /* 346 */ SyscallDesc("unused#346", unimplementedFunc),
455  /* 347 */ SyscallDesc("unused#347", unimplementedFunc),
456  /* 348 */ SyscallDesc("unused#348", unimplementedFunc),
457  /* 349 */ SyscallDesc("unused#349", unimplementedFunc),
458  /* 350 */ SyscallDesc("unused#350", unimplementedFunc),
459  /* 351 */ SyscallDesc("unused#351", unimplementedFunc),
460  /* 352 */ SyscallDesc("unused#352", unimplementedFunc),
461  /* 353 */ SyscallDesc("unused#353", unimplementedFunc),
462  /* 354 */ SyscallDesc("unused#354", unimplementedFunc),
463  /* 355 */ SyscallDesc("unused#355", unimplementedFunc),
464  /* 356 */ SyscallDesc("unused#356", unimplementedFunc),
465  /* 357 */ SyscallDesc("unused#357", unimplementedFunc),
466  /* 358 */ SyscallDesc("unused#358", unimplementedFunc),
467  /* 359 */ SyscallDesc("unused#359", unimplementedFunc),
468  /* 360 */ SyscallDesc("unused#360", unimplementedFunc),
469  /* 361 */ SyscallDesc("unused#361", unimplementedFunc),
470  /* 362 */ SyscallDesc("unused#362", unimplementedFunc),
471  /* 363 */ SyscallDesc("unused#363", unimplementedFunc),
472  /* 364 */ SyscallDesc("unused#364", unimplementedFunc),
473  /* 365 */ SyscallDesc("unused#365", unimplementedFunc),
474  /* 366 */ SyscallDesc("unused#366", unimplementedFunc),
475  /* 367 */ SyscallDesc("unused#367", unimplementedFunc),
476  /* 368 */ SyscallDesc("unused#368", unimplementedFunc),
477  /* 369 */ SyscallDesc("unused#369", unimplementedFunc),
478  /* 370 */ SyscallDesc("unused#370", unimplementedFunc),
479  /* 371 */ SyscallDesc("unused#371", unimplementedFunc),
480  /* 372 */ SyscallDesc("unused#372", unimplementedFunc),
481  /* 373 */ SyscallDesc("unused#373", unimplementedFunc),
482  /* 374 */ SyscallDesc("unused#374", unimplementedFunc),
483  /* 375 */ SyscallDesc("unused#375", unimplementedFunc),
484  /* 376 */ SyscallDesc("unused#376", unimplementedFunc),
485  /* 377 */ SyscallDesc("unused#377", unimplementedFunc),
486  /* 378 */ SyscallDesc("unused#378", unimplementedFunc),
487  /* 379 */ SyscallDesc("unused#379", unimplementedFunc),
488  /* 380 */ SyscallDesc("unused#380", unimplementedFunc),
489  /* 381 */ SyscallDesc("unused#381", unimplementedFunc),
490  /* 382 */ SyscallDesc("unused#382", unimplementedFunc),
491  /* 383 */ SyscallDesc("unused#383", unimplementedFunc),
492  /* 384 */ SyscallDesc("unused#384", unimplementedFunc),
493  /* 385 */ SyscallDesc("unused#385", unimplementedFunc),
494  /* 386 */ SyscallDesc("unused#386", unimplementedFunc),
495  /* 387 */ SyscallDesc("unused#387", unimplementedFunc),
496  /* 388 */ SyscallDesc("unused#388", unimplementedFunc),
497  /* 389 */ SyscallDesc("unused#389", unimplementedFunc),
498  /* 390 */ SyscallDesc("unused#390", unimplementedFunc),
499  /* 391 */ SyscallDesc("unused#391", unimplementedFunc),
500  /* 392 */ SyscallDesc("unused#392", unimplementedFunc),
501  /* 393 */ SyscallDesc("unused#393", unimplementedFunc),
502  /* 394 */ SyscallDesc("unused#394", unimplementedFunc),
503  /* 395 */ SyscallDesc("unused#395", unimplementedFunc),
504  /* 396 */ SyscallDesc("unused#396", unimplementedFunc),
505  /* 397 */ SyscallDesc("unused#397", unimplementedFunc),
506  /* 398 */ SyscallDesc("unused#398", unimplementedFunc),
507  /* 399 */ SyscallDesc("unused#399", unimplementedFunc),
508  /* 400 */ SyscallDesc("unused#400", unimplementedFunc),
509  /* 401 */ SyscallDesc("unused#401", unimplementedFunc),
510  /* 402 */ SyscallDesc("unused#402", unimplementedFunc),
511  /* 403 */ SyscallDesc("unused#403", unimplementedFunc),
512  /* 404 */ SyscallDesc("unused#404", unimplementedFunc),
513  /* 405 */ SyscallDesc("unused#405", unimplementedFunc),
514  /* 406 */ SyscallDesc("unused#406", unimplementedFunc),
515  /* 407 */ SyscallDesc("unused#407", unimplementedFunc),
516  /* 408 */ SyscallDesc("unused#408", unimplementedFunc),
517  /* 409 */ SyscallDesc("unused#409", unimplementedFunc),
518  /* 410 */ SyscallDesc("unused#410", unimplementedFunc),
519  /* 411 */ SyscallDesc("unused#411", unimplementedFunc),
520  /* 412 */ SyscallDesc("unused#412", unimplementedFunc),
521  /* 413 */ SyscallDesc("unused#413", unimplementedFunc),
522  /* 414 */ SyscallDesc("unused#414", unimplementedFunc),
523  /* 415 */ SyscallDesc("unused#415", unimplementedFunc),
524  /* 416 */ SyscallDesc("unused#416", unimplementedFunc),
525  /* 417 */ SyscallDesc("unused#417", unimplementedFunc),
526  /* 418 */ SyscallDesc("unused#418", unimplementedFunc),
527  /* 419 */ SyscallDesc("unused#419", unimplementedFunc),
528  /* 420 */ SyscallDesc("unused#420", unimplementedFunc),
529  /* 421 */ SyscallDesc("unused#421", unimplementedFunc),
530  /* 422 */ SyscallDesc("unused#422", unimplementedFunc),
531  /* 423 */ SyscallDesc("unused#423", unimplementedFunc),
532  /* 424 */ SyscallDesc("unused#424", unimplementedFunc),
533  /* 425 */ SyscallDesc("unused#425", unimplementedFunc),
534  /* 426 */ SyscallDesc("unused#426", unimplementedFunc),
535  /* 427 */ SyscallDesc("unused#427", unimplementedFunc),
536  /* 428 */ SyscallDesc("unused#428", unimplementedFunc),
537  /* 429 */ SyscallDesc("unused#429", unimplementedFunc),
538  /* 430 */ SyscallDesc("unused#430", unimplementedFunc),
539  /* 431 */ SyscallDesc("unused#431", unimplementedFunc),
540  /* 432 */ SyscallDesc("unused#432", unimplementedFunc),
541  /* 433 */ SyscallDesc("unused#433", unimplementedFunc),
542  /* 434 */ SyscallDesc("unused#434", unimplementedFunc),
543  /* 435 */ SyscallDesc("unused#435", unimplementedFunc),
544  /* 436 */ SyscallDesc("unused#436", unimplementedFunc),
545  /* 437 */ SyscallDesc("unused#437", unimplementedFunc),
546  /* 438 */ SyscallDesc("unused#438", unimplementedFunc),
547  /* 439 */ SyscallDesc("unused#439", unimplementedFunc),
548  /* 440 */ SyscallDesc("unused#440", unimplementedFunc),
549  /* 441 */ SyscallDesc("unused#441", unimplementedFunc),
550  /* 442 */ SyscallDesc("unused#442", unimplementedFunc),
551  /* 443 */ SyscallDesc("unused#443", unimplementedFunc),
552  /* 444 */ SyscallDesc("unused#444", unimplementedFunc),
553  /* 445 */ SyscallDesc("unused#445", unimplementedFunc),
554  /* 446 */ SyscallDesc("unused#446", unimplementedFunc),
555  /* 447 */ SyscallDesc("unused#447", unimplementedFunc),
556  /* 448 */ SyscallDesc("unused#448", unimplementedFunc),
557  /* 449 */ SyscallDesc("unused#449", unimplementedFunc),
558  /* 450 */ SyscallDesc("unused#450", unimplementedFunc),
559  /* 451 */ SyscallDesc("unused#451", unimplementedFunc),
560  /* 452 */ SyscallDesc("unused#452", unimplementedFunc),
561  /* 453 */ SyscallDesc("unused#453", unimplementedFunc),
562  /* 454 */ SyscallDesc("unused#454", unimplementedFunc),
563  /* 455 */ SyscallDesc("unused#455", unimplementedFunc),
564  /* 456 */ SyscallDesc("unused#456", unimplementedFunc),
565  /* 457 */ SyscallDesc("unused#457", unimplementedFunc),
566  /* 458 */ SyscallDesc("unused#458", unimplementedFunc),
567  /* 459 */ SyscallDesc("unused#459", unimplementedFunc),
568  /* 460 */ SyscallDesc("unused#460", unimplementedFunc),
569  /* 461 */ SyscallDesc("unused#461", unimplementedFunc),
570  /* 462 */ SyscallDesc("unused#462", unimplementedFunc),
571  /* 463 */ SyscallDesc("unused#463", unimplementedFunc),
572  /* 464 */ SyscallDesc("unused#464", unimplementedFunc),
573  /* 465 */ SyscallDesc("unused#465", unimplementedFunc),
574  /* 466 */ SyscallDesc("unused#466", unimplementedFunc),
575  /* 467 */ SyscallDesc("unused#467", unimplementedFunc),
576  /* 468 */ SyscallDesc("unused#468", unimplementedFunc),
577  /* 469 */ SyscallDesc("unused#469", unimplementedFunc),
578  /* 470 */ SyscallDesc("unused#470", unimplementedFunc),
579  /* 471 */ SyscallDesc("unused#471", unimplementedFunc),
580  /* 472 */ SyscallDesc("unused#472", unimplementedFunc),
581  /* 473 */ SyscallDesc("unused#473", unimplementedFunc),
582  /* 474 */ SyscallDesc("unused#474", unimplementedFunc),
583  /* 475 */ SyscallDesc("unused#475", unimplementedFunc),
584  /* 476 */ SyscallDesc("unused#476", unimplementedFunc),
585  /* 477 */ SyscallDesc("unused#477", unimplementedFunc),
586  /* 478 */ SyscallDesc("unused#478", unimplementedFunc),
587  /* 479 */ SyscallDesc("unused#479", unimplementedFunc),
588  /* 480 */ SyscallDesc("unused#480", unimplementedFunc),
589  /* 481 */ SyscallDesc("unused#481", unimplementedFunc),
590  /* 482 */ SyscallDesc("unused#482", unimplementedFunc),
591  /* 483 */ SyscallDesc("unused#483", unimplementedFunc),
592  /* 484 */ SyscallDesc("unused#484", unimplementedFunc),
593  /* 485 */ SyscallDesc("unused#485", unimplementedFunc),
594  /* 486 */ SyscallDesc("unused#486", unimplementedFunc),
595  /* 487 */ SyscallDesc("unused#487", unimplementedFunc),
596  /* 488 */ SyscallDesc("unused#488", unimplementedFunc),
597  /* 489 */ SyscallDesc("unused#489", unimplementedFunc),
598  /* 490 */ SyscallDesc("unused#490", unimplementedFunc),
599  /* 491 */ SyscallDesc("unused#491", unimplementedFunc),
600  /* 492 */ SyscallDesc("unused#492", unimplementedFunc),
601  /* 493 */ SyscallDesc("unused#493", unimplementedFunc),
602  /* 494 */ SyscallDesc("unused#494", unimplementedFunc),
603  /* 495 */ SyscallDesc("unused#495", unimplementedFunc),
604  /* 496 */ SyscallDesc("unused#496", unimplementedFunc),
605  /* 497 */ SyscallDesc("unused#497", unimplementedFunc),
606  /* 498 */ SyscallDesc("unused#498", unimplementedFunc),
607  /* 499 */ SyscallDesc("unused#499", unimplementedFunc),
608  /* 500 */ SyscallDesc("unused#500", unimplementedFunc),
609  /* 501 */ SyscallDesc("unused#501", unimplementedFunc),
610  /* 502 */ SyscallDesc("unused#502", unimplementedFunc),
611  /* 503 */ SyscallDesc("unused#503", unimplementedFunc),
612  /* 504 */ SyscallDesc("unused#504", unimplementedFunc),
613  /* 505 */ SyscallDesc("unused#505", unimplementedFunc),
614  /* 506 */ SyscallDesc("unused#506", unimplementedFunc),
615  /* 507 */ SyscallDesc("unused#507", unimplementedFunc),
616  /* 508 */ SyscallDesc("unused#508", unimplementedFunc),
617  /* 509 */ SyscallDesc("unused#509", unimplementedFunc),
618  /* 510 */ SyscallDesc("unused#510", unimplementedFunc),
619  /* 511 */ SyscallDesc("unused#511", unimplementedFunc),
620  /* 512 */ SyscallDesc("unused#512", unimplementedFunc),
621  /* 513 */ SyscallDesc("unused#513", unimplementedFunc),
622  /* 514 */ SyscallDesc("unused#514", unimplementedFunc),
623  /* 515 */ SyscallDesc("unused#515", unimplementedFunc),
624  /* 516 */ SyscallDesc("unused#516", unimplementedFunc),
625  /* 517 */ SyscallDesc("unused#517", unimplementedFunc),
626  /* 518 */ SyscallDesc("unused#518", unimplementedFunc),
627  /* 519 */ SyscallDesc("unused#519", unimplementedFunc),
628  /* 520 */ SyscallDesc("unused#520", unimplementedFunc),
629  /* 521 */ SyscallDesc("unused#521", unimplementedFunc),
630  /* 522 */ SyscallDesc("unused#522", unimplementedFunc),
631  /* 523 */ SyscallDesc("unused#523", unimplementedFunc),
632  /* 524 */ SyscallDesc("unused#524", unimplementedFunc),
633  /* 525 */ SyscallDesc("unused#525", unimplementedFunc),
634  /* 526 */ SyscallDesc("unused#526", unimplementedFunc),
635  /* 527 */ SyscallDesc("unused#527", unimplementedFunc),
636  /* 528 */ SyscallDesc("unused#528", unimplementedFunc),
637  /* 529 */ SyscallDesc("unused#529", unimplementedFunc),
638  /* 530 */ SyscallDesc("unused#530", unimplementedFunc),
639  /* 531 */ SyscallDesc("unused#531", unimplementedFunc),
640  /* 532 */ SyscallDesc("unused#532", unimplementedFunc),
641  /* 533 */ SyscallDesc("unused#533", unimplementedFunc),
642  /* 534 */ SyscallDesc("unused#534", unimplementedFunc),
643  /* 535 */ SyscallDesc("unused#535", unimplementedFunc),
644  /* 536 */ SyscallDesc("unused#536", unimplementedFunc),
645  /* 537 */ SyscallDesc("unused#537", unimplementedFunc),
646  /* 538 */ SyscallDesc("unused#538", unimplementedFunc),
647  /* 539 */ SyscallDesc("unused#539", unimplementedFunc),
648  /* 540 */ SyscallDesc("unused#540", unimplementedFunc),
649  /* 541 */ SyscallDesc("unused#541", unimplementedFunc),
650  /* 542 */ SyscallDesc("unused#542", unimplementedFunc),
651  /* 543 */ SyscallDesc("unused#543", unimplementedFunc),
652  /* 544 */ SyscallDesc("unused#544", unimplementedFunc),
653  /* 545 */ SyscallDesc("unused#545", unimplementedFunc),
654  /* 546 */ SyscallDesc("unused#546", unimplementedFunc),
655  /* 547 */ SyscallDesc("unused#547", unimplementedFunc),
656 };
657 
659  /* 0 */ SyscallDesc("unused#000", unimplementedFunc),
660  /* 1 */ SyscallDesc("exit", exitFunc),
661  /* 2 */ SyscallDesc("unused#002", unimplementedFunc),
662  /* 3 */ SyscallDesc("read", readFunc),
663  /* 4 */ SyscallDesc("write", writeFunc),
664  /* 5 */ SyscallDesc("unused#005", unimplementedFunc),
665  /* 6 */ SyscallDesc("unused#006", unimplementedFunc),
666  /* 7 */ SyscallDesc("unused#007", unimplementedFunc),
667  /* 8 */ SyscallDesc("unused#008", unimplementedFunc),
668  /* 9 */ SyscallDesc("unused#009", unimplementedFunc),
669  /* 10 */ SyscallDesc("unused#010", unimplementedFunc),
670  /* 11 */ SyscallDesc("unused#011", unimplementedFunc),
671  /* 12 */ SyscallDesc("unused#012", unimplementedFunc),
672  /* 13 */ SyscallDesc("unused#013", unimplementedFunc),
673  /* 14 */ SyscallDesc("unused#014", unimplementedFunc),
674  /* 15 */ SyscallDesc("unused#015", unimplementedFunc),
675  /* 16 */ SyscallDesc("unused#016", unimplementedFunc),
676  /* 17 */ SyscallDesc("obreak", brkFunc),
677  /* 18 */ SyscallDesc("unused#018", unimplementedFunc),
678  /* 19 */ SyscallDesc("unused#019", unimplementedFunc),
679  /* 20 */ SyscallDesc("unused#020", unimplementedFunc),
680  /* 21 */ SyscallDesc("unused#021", unimplementedFunc),
681  /* 22 */ SyscallDesc("unused#022", unimplementedFunc),
682  /* 23 */ SyscallDesc("unused#023", unimplementedFunc),
683  /* 24 */ SyscallDesc("unused#024", unimplementedFunc),
684  /* 25 */ SyscallDesc("unused#025", unimplementedFunc),
685  /* 26 */ SyscallDesc("unused#026", unimplementedFunc),
686  /* 27 */ SyscallDesc("unused#027", unimplementedFunc),
687  /* 28 */ SyscallDesc("unused#028", unimplementedFunc),
688  /* 29 */ SyscallDesc("unused#029", unimplementedFunc),
689  /* 30 */ SyscallDesc("unused#030", unimplementedFunc),
690  /* 31 */ SyscallDesc("unused#031", unimplementedFunc),
691  /* 32 */ SyscallDesc("unused#032", unimplementedFunc),
692  /* 33 */ SyscallDesc("unused#033", unimplementedFunc),
693  /* 34 */ SyscallDesc("unused#034", unimplementedFunc),
694  /* 35 */ SyscallDesc("unused#035", unimplementedFunc),
695  /* 36 */ SyscallDesc("unused#036", unimplementedFunc),
696  /* 37 */ SyscallDesc("unused#037", unimplementedFunc),
697  /* 38 */ SyscallDesc("unused#038", unimplementedFunc),
698  /* 39 */ SyscallDesc("unused#039", unimplementedFunc),
699  /* 40 */ SyscallDesc("unused#040", unimplementedFunc),
700  /* 41 */ SyscallDesc("unused#041", unimplementedFunc),
701  /* 42 */ SyscallDesc("unused#042", unimplementedFunc),
702  /* 43 */ SyscallDesc("unused#043", unimplementedFunc),
703  /* 44 */ SyscallDesc("unused#044", unimplementedFunc),
704  /* 45 */ SyscallDesc("unused#045", unimplementedFunc),
705  /* 46 */ SyscallDesc("unused#046", unimplementedFunc),
706  /* 47 */ SyscallDesc("unused#047", unimplementedFunc),
707  /* 48 */ SyscallDesc("unused#048", unimplementedFunc),
708  /* 49 */ SyscallDesc("unused#049", unimplementedFunc),
709  /* 50 */ SyscallDesc("unused#050", unimplementedFunc),
710  /* 51 */ SyscallDesc("unused#051", unimplementedFunc),
711  /* 52 */ SyscallDesc("unused#052", unimplementedFunc),
712  /* 53 */ SyscallDesc("unused#053", unimplementedFunc),
713  /* 54 */ SyscallDesc("ioctl", ioctlFunc<ArmFreebsd64>),
714  /* 55 */ SyscallDesc("unused#055", unimplementedFunc),
715  /* 56 */ SyscallDesc("unused#056", unimplementedFunc),
716  /* 57 */ SyscallDesc("unused#057", unimplementedFunc),
717  /* 58 */ SyscallDesc("readlink", readlinkFunc),
718  /* 59 */ SyscallDesc("unused#059", unimplementedFunc),
719  /* 60 */ SyscallDesc("unused#060", unimplementedFunc),
720  /* 61 */ SyscallDesc("unused#061", unimplementedFunc),
721  /* 62 */ SyscallDesc("unused#062", unimplementedFunc),
722  /* 63 */ SyscallDesc("unused#063", unimplementedFunc),
723  /* 64 */ SyscallDesc("unused#064", unimplementedFunc),
724  /* 65 */ SyscallDesc("unused#065", unimplementedFunc),
725  /* 66 */ SyscallDesc("unused#066", unimplementedFunc),
726  /* 67 */ SyscallDesc("unused#067", unimplementedFunc),
727  /* 68 */ SyscallDesc("unused#068", unimplementedFunc),
728  /* 69 */ SyscallDesc("unused#069", unimplementedFunc),
729  /* 70 */ SyscallDesc("unused#070", unimplementedFunc),
730  /* 71 */ SyscallDesc("unused#071", unimplementedFunc),
731  /* 72 */ SyscallDesc("unused#072", unimplementedFunc),
732  /* 73 */ SyscallDesc("unused#073", unimplementedFunc),
733  /* 74 */ SyscallDesc("unused#074", unimplementedFunc),
734  /* 75 */ SyscallDesc("unused#075", unimplementedFunc),
735  /* 76 */ SyscallDesc("unused#076", unimplementedFunc),
736  /* 77 */ SyscallDesc("unused#077", unimplementedFunc),
737  /* 78 */ SyscallDesc("unused#078", unimplementedFunc),
738  /* 79 */ SyscallDesc("unused#079", unimplementedFunc),
739  /* 80 */ SyscallDesc("unused#080", unimplementedFunc),
740  /* 81 */ SyscallDesc("unused#081", unimplementedFunc),
741  /* 82 */ SyscallDesc("unused#082", unimplementedFunc),
742  /* 83 */ SyscallDesc("unused#083", unimplementedFunc),
743  /* 84 */ SyscallDesc("unused#084", unimplementedFunc),
744  /* 85 */ SyscallDesc("unused#085", unimplementedFunc),
745  /* 86 */ SyscallDesc("unused#086", unimplementedFunc),
746  /* 87 */ SyscallDesc("unused#087", unimplementedFunc),
747  /* 88 */ SyscallDesc("unused#088", unimplementedFunc),
748  /* 89 */ SyscallDesc("unused#089", unimplementedFunc),
749  /* 90 */ SyscallDesc("unused#090", unimplementedFunc),
750  /* 91 */ SyscallDesc("unused#091", unimplementedFunc),
751  /* 92 */ SyscallDesc("unused#092", unimplementedFunc),
752  /* 93 */ SyscallDesc("unused#093", unimplementedFunc),
753  /* 94 */ SyscallDesc("unused#094", unimplementedFunc),
754  /* 95 */ SyscallDesc("unused#095", unimplementedFunc),
755  /* 96 */ SyscallDesc("unused#096", unimplementedFunc),
756  /* 97 */ SyscallDesc("unused#097", unimplementedFunc),
757  /* 98 */ SyscallDesc("unused#098", unimplementedFunc),
758  /* 99 */ SyscallDesc("unused#099", unimplementedFunc),
759  /* 100 */ SyscallDesc("unused#100", unimplementedFunc),
760  /* 101 */ SyscallDesc("unused#101", unimplementedFunc),
761  /* 102 */ SyscallDesc("unused#102", unimplementedFunc),
762  /* 103 */ SyscallDesc("unused#103", unimplementedFunc),
763  /* 104 */ SyscallDesc("unused#104", unimplementedFunc),
764  /* 105 */ SyscallDesc("unused#105", unimplementedFunc),
765  /* 106 */ SyscallDesc("unused#106", unimplementedFunc),
766  /* 107 */ SyscallDesc("unused#107", unimplementedFunc),
767  /* 108 */ SyscallDesc("unused#108", unimplementedFunc),
768  /* 109 */ SyscallDesc("unused#109", unimplementedFunc),
769  /* 110 */ SyscallDesc("unused#110", unimplementedFunc),
770  /* 111 */ SyscallDesc("unused#111", unimplementedFunc),
771  /* 112 */ SyscallDesc("unused#112", unimplementedFunc),
772  /* 113 */ SyscallDesc("unused#113", unimplementedFunc),
773  /* 114 */ SyscallDesc("unused#114", unimplementedFunc),
774  /* 115 */ SyscallDesc("unused#115", unimplementedFunc),
775  /* 116 */ SyscallDesc("unused#116", unimplementedFunc),
776  /* 117 */ SyscallDesc("getrusage", getrusageFunc<ArmFreebsd64>),
777  /* 118 */ SyscallDesc("unused#118", unimplementedFunc),
778  /* 119 */ SyscallDesc("unused#119", unimplementedFunc),
779  /* 120 */ SyscallDesc("unused#120", unimplementedFunc),
780  /* 121 */ SyscallDesc("unused#121", unimplementedFunc),
781  /* 122 */ SyscallDesc("unused#122", unimplementedFunc),
782  /* 123 */ SyscallDesc("unused#123", unimplementedFunc),
783  /* 124 */ SyscallDesc("unused#124", unimplementedFunc),
784  /* 125 */ SyscallDesc("unused#125", unimplementedFunc),
785  /* 126 */ SyscallDesc("unused#126", unimplementedFunc),
786  /* 127 */ SyscallDesc("unused#127", unimplementedFunc),
787  /* 128 */ SyscallDesc("unused#128", unimplementedFunc),
788  /* 129 */ SyscallDesc("unused#129", unimplementedFunc),
789  /* 130 */ SyscallDesc("unused#130", unimplementedFunc),
790  /* 131 */ SyscallDesc("unused#131", unimplementedFunc),
791  /* 132 */ SyscallDesc("unused#132", unimplementedFunc),
792  /* 133 */ SyscallDesc("unused#133", unimplementedFunc),
793  /* 134 */ SyscallDesc("unused#134", unimplementedFunc),
794  /* 135 */ SyscallDesc("unused#135", unimplementedFunc),
795  /* 136 */ SyscallDesc("unused#136", unimplementedFunc),
796  /* 137 */ SyscallDesc("unused#137", unimplementedFunc),
797  /* 138 */ SyscallDesc("unused#138", unimplementedFunc),
798  /* 139 */ SyscallDesc("unused#139", unimplementedFunc),
799  /* 140 */ SyscallDesc("unused#140", unimplementedFunc),
800  /* 141 */ SyscallDesc("unused#141", unimplementedFunc),
801  /* 142 */ SyscallDesc("unused#142", unimplementedFunc),
802  /* 143 */ SyscallDesc("unused#143", unimplementedFunc),
803  /* 144 */ SyscallDesc("unused#144", unimplementedFunc),
804  /* 145 */ SyscallDesc("unused#145", unimplementedFunc),
805  /* 146 */ SyscallDesc("unused#146", unimplementedFunc),
806  /* 147 */ SyscallDesc("unused#147", unimplementedFunc),
807  /* 148 */ SyscallDesc("unused#148", unimplementedFunc),
808  /* 149 */ SyscallDesc("unused#149", unimplementedFunc),
809  /* 150 */ SyscallDesc("unused#150", unimplementedFunc),
810  /* 151 */ SyscallDesc("unused#151", unimplementedFunc),
811  /* 152 */ SyscallDesc("unused#152", unimplementedFunc),
812  /* 153 */ SyscallDesc("unused#153", unimplementedFunc),
813  /* 154 */ SyscallDesc("unused#154", unimplementedFunc),
814  /* 155 */ SyscallDesc("unused#155", unimplementedFunc),
815  /* 156 */ SyscallDesc("unused#156", unimplementedFunc),
816  /* 157 */ SyscallDesc("unused#157", unimplementedFunc),
817  /* 158 */ SyscallDesc("unused#158", unimplementedFunc),
818  /* 159 */ SyscallDesc("unused#159", unimplementedFunc),
819  /* 160 */ SyscallDesc("unused#160", unimplementedFunc),
820  /* 161 */ SyscallDesc("unused#161", unimplementedFunc),
821  /* 162 */ SyscallDesc("unused#162", unimplementedFunc),
822  /* 163 */ SyscallDesc("unused#163", unimplementedFunc),
823  /* 164 */ SyscallDesc("unused#164", unimplementedFunc),
824  /* 165 */ SyscallDesc("unused#165", unimplementedFunc),
825  /* 166 */ SyscallDesc("unused#166", unimplementedFunc),
826  /* 167 */ SyscallDesc("unused#167", unimplementedFunc),
827  /* 168 */ SyscallDesc("unused#168", unimplementedFunc),
828  /* 169 */ SyscallDesc("unused#169", unimplementedFunc),
829  /* 170 */ SyscallDesc("unused#170", unimplementedFunc),
830  /* 171 */ SyscallDesc("unused#171", unimplementedFunc),
831  /* 172 */ SyscallDesc("unused#172", unimplementedFunc),
832  /* 173 */ SyscallDesc("unused#173", unimplementedFunc),
833  /* 174 */ SyscallDesc("unused#174", unimplementedFunc),
834  /* 175 */ SyscallDesc("unused#175", unimplementedFunc),
835  /* 176 */ SyscallDesc("unused#176", unimplementedFunc),
836  /* 177 */ SyscallDesc("unused#177", unimplementedFunc),
837  /* 178 */ SyscallDesc("unused#178", unimplementedFunc),
838  /* 179 */ SyscallDesc("unused#179", unimplementedFunc),
839  /* 180 */ SyscallDesc("unused#180", unimplementedFunc),
840  /* 181 */ SyscallDesc("unused#181", unimplementedFunc),
841  /* 182 */ SyscallDesc("unused#182", unimplementedFunc),
842  /* 183 */ SyscallDesc("unused#183", unimplementedFunc),
843  /* 184 */ SyscallDesc("unused#184", unimplementedFunc),
844  /* 185 */ SyscallDesc("unused#185", unimplementedFunc),
845  /* 186 */ SyscallDesc("unused#186", unimplementedFunc),
846  /* 187 */ SyscallDesc("unused#187", unimplementedFunc),
847  /* 188 */ SyscallDesc("unused#188", unimplementedFunc),
848  /* 189 */ SyscallDesc("fstat", fstatFunc<ArmFreebsd64>),
849  /* 190 */ SyscallDesc("unused#190", unimplementedFunc),
850  /* 191 */ SyscallDesc("unused#191", unimplementedFunc),
851  /* 192 */ SyscallDesc("unused#192", unimplementedFunc),
852  /* 193 */ SyscallDesc("unused#193", unimplementedFunc),
853  /* 194 */ SyscallDesc("unused#194", unimplementedFunc),
854  /* 195 */ SyscallDesc("unused#195", unimplementedFunc),
855  /* 196 */ SyscallDesc("unused#196", unimplementedFunc),
856  /* 197 */ SyscallDesc("unused#197", unimplementedFunc),
857  /* 198 */ SyscallDesc("unused#198", unimplementedFunc),
858  /* 199 */ SyscallDesc("unused#199", unimplementedFunc),
859  /* 200 */ SyscallDesc("unused#200", unimplementedFunc),
860  /* 201 */ SyscallDesc("unused#201", unimplementedFunc),
861  /* 202 */ SyscallDesc("sysctl", sysctlFunc),
862  /* 203 */ SyscallDesc("unused#203", unimplementedFunc),
863  /* 204 */ SyscallDesc("unused#204", unimplementedFunc),
864  /* 205 */ SyscallDesc("unused#205", unimplementedFunc),
865  /* 206 */ SyscallDesc("unused#206", unimplementedFunc),
866  /* 207 */ SyscallDesc("unused#207", unimplementedFunc),
867  /* 208 */ SyscallDesc("unused#208", unimplementedFunc),
868  /* 209 */ SyscallDesc("unused#209", unimplementedFunc),
869  /* 210 */ SyscallDesc("unused#210", unimplementedFunc),
870  /* 211 */ SyscallDesc("unused#211", unimplementedFunc),
871  /* 212 */ SyscallDesc("unused#212", unimplementedFunc),
872  /* 213 */ SyscallDesc("unused#213", unimplementedFunc),
873  /* 214 */ SyscallDesc("unused#214", unimplementedFunc),
874  /* 215 */ SyscallDesc("unused#215", unimplementedFunc),
875  /* 216 */ SyscallDesc("unused#216", unimplementedFunc),
876  /* 217 */ SyscallDesc("unused#217", unimplementedFunc),
877  /* 218 */ SyscallDesc("unused#218", unimplementedFunc),
878  /* 219 */ SyscallDesc("unused#219", unimplementedFunc),
879  /* 220 */ SyscallDesc("unused#220", unimplementedFunc),
880  /* 221 */ SyscallDesc("unused#221", unimplementedFunc),
881  /* 222 */ SyscallDesc("unused#222", unimplementedFunc),
882  /* 223 */ SyscallDesc("unused#223", unimplementedFunc),
883  /* 224 */ SyscallDesc("unused#224", unimplementedFunc),
884  /* 225 */ SyscallDesc("unused#225", unimplementedFunc),
885  /* 226 */ SyscallDesc("unused#226", unimplementedFunc),
886  /* 227 */ SyscallDesc("unused#227", unimplementedFunc),
887  /* 228 */ SyscallDesc("unused#228", unimplementedFunc),
888  /* 229 */ SyscallDesc("unused#229", unimplementedFunc),
889  /* 230 */ SyscallDesc("unused#230", unimplementedFunc),
890  /* 231 */ SyscallDesc("unused#231", unimplementedFunc),
891  /* 232 */ SyscallDesc("unused#232", unimplementedFunc),
892  /* 233 */ SyscallDesc("unused#233", unimplementedFunc),
893  /* 234 */ SyscallDesc("unused#234", unimplementedFunc),
894  /* 235 */ SyscallDesc("unused#235", unimplementedFunc),
895  /* 236 */ SyscallDesc("unused#236", unimplementedFunc),
896  /* 237 */ SyscallDesc("unused#237", unimplementedFunc),
897  /* 238 */ SyscallDesc("unused#238", unimplementedFunc),
898  /* 239 */ SyscallDesc("unused#239", unimplementedFunc),
899  /* 240 */ SyscallDesc("unused#240", unimplementedFunc),
900  /* 241 */ SyscallDesc("unused#241", unimplementedFunc),
901  /* 242 */ SyscallDesc("unused#242", unimplementedFunc),
902  /* 243 */ SyscallDesc("unused#243", unimplementedFunc),
903  /* 244 */ SyscallDesc("unused#244", unimplementedFunc),
904  /* 245 */ SyscallDesc("unused#245", unimplementedFunc),
905  /* 246 */ SyscallDesc("unused#246", unimplementedFunc),
906  /* 247 */ SyscallDesc("unused#247", unimplementedFunc),
907  /* 248 */ SyscallDesc("unused#248", unimplementedFunc),
908  /* 249 */ SyscallDesc("unused#249", unimplementedFunc),
909  /* 250 */ SyscallDesc("unused#250", unimplementedFunc),
910  /* 251 */ SyscallDesc("unused#251", unimplementedFunc),
911  /* 252 */ SyscallDesc("unused#252", unimplementedFunc),
912  /* 253 */ SyscallDesc("issetugid", issetugidFunc),
913  /* 254 */ SyscallDesc("unused#254", unimplementedFunc),
914  /* 255 */ SyscallDesc("unused#255", unimplementedFunc),
915  /* 256 */ SyscallDesc("unused#256", unimplementedFunc),
916  /* 257 */ SyscallDesc("unused#257", unimplementedFunc),
917  /* 258 */ SyscallDesc("unused#258", unimplementedFunc),
918  /* 259 */ SyscallDesc("unused#259", unimplementedFunc),
919  /* 260 */ SyscallDesc("unused#260", unimplementedFunc),
920  /* 261 */ SyscallDesc("unused#261", unimplementedFunc),
921  /* 262 */ SyscallDesc("unused#262", unimplementedFunc),
922  /* 263 */ SyscallDesc("unused#263", unimplementedFunc),
923  /* 264 */ SyscallDesc("unused#264", unimplementedFunc),
924  /* 265 */ SyscallDesc("unused#265", unimplementedFunc),
925  /* 266 */ SyscallDesc("unused#266", unimplementedFunc),
926  /* 267 */ SyscallDesc("unused#267", unimplementedFunc),
927  /* 268 */ SyscallDesc("unused#268", unimplementedFunc),
928  /* 269 */ SyscallDesc("unused#269", unimplementedFunc),
929  /* 270 */ SyscallDesc("unused#270", unimplementedFunc),
930  /* 271 */ SyscallDesc("unused#271", unimplementedFunc),
931  /* 272 */ SyscallDesc("unused#272", unimplementedFunc),
932  /* 273 */ SyscallDesc("unused#273", unimplementedFunc),
933  /* 274 */ SyscallDesc("unused#274", unimplementedFunc),
934  /* 275 */ SyscallDesc("unused#275", unimplementedFunc),
935  /* 276 */ SyscallDesc("unused#276", unimplementedFunc),
936  /* 277 */ SyscallDesc("unused#277", unimplementedFunc),
937  /* 278 */ SyscallDesc("unused#278", unimplementedFunc),
938  /* 279 */ SyscallDesc("unused#279", unimplementedFunc),
939  /* 280 */ SyscallDesc("unused#280", unimplementedFunc),
940  /* 281 */ SyscallDesc("unused#281", unimplementedFunc),
941  /* 282 */ SyscallDesc("unused#282", unimplementedFunc),
942  /* 283 */ SyscallDesc("unused#283", unimplementedFunc),
943  /* 284 */ SyscallDesc("unused#284", unimplementedFunc),
944  /* 285 */ SyscallDesc("unused#285", unimplementedFunc),
945  /* 286 */ SyscallDesc("unused#286", unimplementedFunc),
946  /* 287 */ SyscallDesc("unused#287", unimplementedFunc),
947  /* 288 */ SyscallDesc("unused#288", unimplementedFunc),
948  /* 289 */ SyscallDesc("unused#289", unimplementedFunc),
949  /* 290 */ SyscallDesc("unused#290", unimplementedFunc),
950  /* 291 */ SyscallDesc("unused#291", unimplementedFunc),
951  /* 292 */ SyscallDesc("unused#292", unimplementedFunc),
952  /* 293 */ SyscallDesc("unused#293", unimplementedFunc),
953  /* 294 */ SyscallDesc("unused#294", unimplementedFunc),
954  /* 295 */ SyscallDesc("unused#295", unimplementedFunc),
955  /* 296 */ SyscallDesc("unused#296", unimplementedFunc),
956  /* 297 */ SyscallDesc("unused#297", unimplementedFunc),
957  /* 298 */ SyscallDesc("unused#298", unimplementedFunc),
958  /* 299 */ SyscallDesc("unused#299", unimplementedFunc),
959  /* 300 */ SyscallDesc("unused#300", unimplementedFunc),
960  /* 301 */ SyscallDesc("unused#301", unimplementedFunc),
961  /* 302 */ SyscallDesc("unused#302", unimplementedFunc),
962  /* 303 */ SyscallDesc("unused#303", unimplementedFunc),
963  /* 304 */ SyscallDesc("unused#304", unimplementedFunc),
964  /* 305 */ SyscallDesc("unused#305", unimplementedFunc),
965  /* 306 */ SyscallDesc("unused#306", unimplementedFunc),
966  /* 307 */ SyscallDesc("unused#307", unimplementedFunc),
967  /* 308 */ SyscallDesc("unused#308", unimplementedFunc),
968  /* 309 */ SyscallDesc("unused#309", unimplementedFunc),
969  /* 310 */ SyscallDesc("unused#310", unimplementedFunc),
970  /* 311 */ SyscallDesc("unused#311", unimplementedFunc),
971  /* 312 */ SyscallDesc("unused#312", unimplementedFunc),
972  /* 313 */ SyscallDesc("unused#313", unimplementedFunc),
973  /* 314 */ SyscallDesc("unused#314", unimplementedFunc),
974  /* 315 */ SyscallDesc("unused#315", unimplementedFunc),
975  /* 316 */ SyscallDesc("unused#316", unimplementedFunc),
976  /* 317 */ SyscallDesc("unused#317", unimplementedFunc),
977  /* 318 */ SyscallDesc("unused#318", unimplementedFunc),
978  /* 319 */ SyscallDesc("unused#319", unimplementedFunc),
979  /* 320 */ SyscallDesc("unused#320", unimplementedFunc),
980  /* 321 */ SyscallDesc("unused#321", unimplementedFunc),
981  /* 322 */ SyscallDesc("unused#322", unimplementedFunc),
982  /* 323 */ SyscallDesc("unused#323", unimplementedFunc),
983  /* 324 */ SyscallDesc("unused#324", unimplementedFunc),
984  /* 325 */ SyscallDesc("unused#325", unimplementedFunc),
985  /* 326 */ SyscallDesc("unused#326", unimplementedFunc),
986  /* 327 */ SyscallDesc("unused#327", unimplementedFunc),
987  /* 328 */ SyscallDesc("unused#328", unimplementedFunc),
988  /* 329 */ SyscallDesc("unused#329", unimplementedFunc),
989  /* 330 */ SyscallDesc("unused#330", unimplementedFunc),
990  /* 331 */ SyscallDesc("unused#331", unimplementedFunc),
991  /* 332 */ SyscallDesc("unused#332", unimplementedFunc),
992  /* 333 */ SyscallDesc("unused#333", unimplementedFunc),
993  /* 334 */ SyscallDesc("unused#334", unimplementedFunc),
994  /* 335 */ SyscallDesc("unused#335", unimplementedFunc),
995  /* 336 */ SyscallDesc("unused#336", unimplementedFunc),
996  /* 337 */ SyscallDesc("unused#337", unimplementedFunc),
997  /* 338 */ SyscallDesc("unused#338", unimplementedFunc),
998  /* 339 */ SyscallDesc("unused#339", unimplementedFunc),
999  /* 340 */ SyscallDesc("unused#340", unimplementedFunc),
1000  /* 341 */ SyscallDesc("unused#341", unimplementedFunc),
1001  /* 342 */ SyscallDesc("unused#342", unimplementedFunc),
1002  /* 343 */ SyscallDesc("unused#343", unimplementedFunc),
1003  /* 344 */ SyscallDesc("unused#344", unimplementedFunc),
1004  /* 345 */ SyscallDesc("unused#345", unimplementedFunc),
1005  /* 346 */ SyscallDesc("unused#346", unimplementedFunc),
1006  /* 347 */ SyscallDesc("unused#347", unimplementedFunc),
1007  /* 348 */ SyscallDesc("unused#348", unimplementedFunc),
1008  /* 349 */ SyscallDesc("unused#349", unimplementedFunc),
1009  /* 350 */ SyscallDesc("unused#350", unimplementedFunc),
1010  /* 351 */ SyscallDesc("unused#351", unimplementedFunc),
1011  /* 352 */ SyscallDesc("unused#352", unimplementedFunc),
1012  /* 353 */ SyscallDesc("unused#353", unimplementedFunc),
1013  /* 354 */ SyscallDesc("unused#354", unimplementedFunc),
1014  /* 355 */ SyscallDesc("unused#355", unimplementedFunc),
1015  /* 356 */ SyscallDesc("unused#356", unimplementedFunc),
1016  /* 357 */ SyscallDesc("unused#357", unimplementedFunc),
1017  /* 358 */ SyscallDesc("unused#358", unimplementedFunc),
1018  /* 359 */ SyscallDesc("unused#359", unimplementedFunc),
1019  /* 360 */ SyscallDesc("unused#360", unimplementedFunc),
1020  /* 361 */ SyscallDesc("unused#361", unimplementedFunc),
1021  /* 362 */ SyscallDesc("unused#362", unimplementedFunc),
1022  /* 363 */ SyscallDesc("unused#363", unimplementedFunc),
1023  /* 364 */ SyscallDesc("unused#364", unimplementedFunc),
1024  /* 365 */ SyscallDesc("unused#365", unimplementedFunc),
1025  /* 366 */ SyscallDesc("unused#366", unimplementedFunc),
1026  /* 367 */ SyscallDesc("unused#367", unimplementedFunc),
1027  /* 368 */ SyscallDesc("unused#368", unimplementedFunc),
1028  /* 369 */ SyscallDesc("unused#369", unimplementedFunc),
1029  /* 370 */ SyscallDesc("unused#370", unimplementedFunc),
1030  /* 371 */ SyscallDesc("unused#371", unimplementedFunc),
1031  /* 372 */ SyscallDesc("unused#372", unimplementedFunc),
1032  /* 373 */ SyscallDesc("unused#373", unimplementedFunc),
1033  /* 374 */ SyscallDesc("unused#374", unimplementedFunc),
1034  /* 375 */ SyscallDesc("unused#375", unimplementedFunc),
1035  /* 376 */ SyscallDesc("unused#376", unimplementedFunc),
1036  /* 377 */ SyscallDesc("unused#377", unimplementedFunc),
1037  /* 378 */ SyscallDesc("unused#378", unimplementedFunc),
1038  /* 379 */ SyscallDesc("unused#379", unimplementedFunc),
1039  /* 380 */ SyscallDesc("unused#380", unimplementedFunc),
1040  /* 381 */ SyscallDesc("unused#381", unimplementedFunc),
1041  /* 382 */ SyscallDesc("unused#382", unimplementedFunc),
1042  /* 383 */ SyscallDesc("unused#383", unimplementedFunc),
1043  /* 384 */ SyscallDesc("unused#384", unimplementedFunc),
1044  /* 385 */ SyscallDesc("unused#385", unimplementedFunc),
1045  /* 386 */ SyscallDesc("unused#386", unimplementedFunc),
1046  /* 387 */ SyscallDesc("unused#387", unimplementedFunc),
1047  /* 388 */ SyscallDesc("unused#388", unimplementedFunc),
1048  /* 389 */ SyscallDesc("unused#389", unimplementedFunc),
1049  /* 390 */ SyscallDesc("unused#390", unimplementedFunc),
1050  /* 391 */ SyscallDesc("unused#391", unimplementedFunc),
1051  /* 392 */ SyscallDesc("unused#392", unimplementedFunc),
1052  /* 393 */ SyscallDesc("unused#393", unimplementedFunc),
1053  /* 394 */ SyscallDesc("unused#394", unimplementedFunc),
1054  /* 395 */ SyscallDesc("unused#395", unimplementedFunc),
1055  /* 396 */ SyscallDesc("unused#396", unimplementedFunc),
1056  /* 397 */ SyscallDesc("unused#397", unimplementedFunc),
1057  /* 398 */ SyscallDesc("unused#398", unimplementedFunc),
1058  /* 399 */ SyscallDesc("unused#399", unimplementedFunc),
1059  /* 400 */ SyscallDesc("unused#400", unimplementedFunc),
1060  /* 401 */ SyscallDesc("unused#401", unimplementedFunc),
1061  /* 402 */ SyscallDesc("unused#402", unimplementedFunc),
1062  /* 403 */ SyscallDesc("unused#403", unimplementedFunc),
1063  /* 404 */ SyscallDesc("unused#404", unimplementedFunc),
1064  /* 405 */ SyscallDesc("unused#405", unimplementedFunc),
1065  /* 406 */ SyscallDesc("unused#406", unimplementedFunc),
1066  /* 407 */ SyscallDesc("unused#407", unimplementedFunc),
1067  /* 408 */ SyscallDesc("unused#408", unimplementedFunc),
1068  /* 409 */ SyscallDesc("unused#409", unimplementedFunc),
1069  /* 410 */ SyscallDesc("unused#410", unimplementedFunc),
1070  /* 411 */ SyscallDesc("unused#411", unimplementedFunc),
1071  /* 412 */ SyscallDesc("unused#412", unimplementedFunc),
1072  /* 413 */ SyscallDesc("unused#413", unimplementedFunc),
1073  /* 414 */ SyscallDesc("unused#414", unimplementedFunc),
1074  /* 415 */ SyscallDesc("unused#415", unimplementedFunc),
1075  /* 416 */ SyscallDesc("unused#416", unimplementedFunc),
1076  /* 417 */ SyscallDesc("unused#417", unimplementedFunc),
1077  /* 418 */ SyscallDesc("unused#418", unimplementedFunc),
1078  /* 419 */ SyscallDesc("unused#419", unimplementedFunc),
1079  /* 420 */ SyscallDesc("unused#420", unimplementedFunc),
1080  /* 421 */ SyscallDesc("unused#421", unimplementedFunc),
1081  /* 422 */ SyscallDesc("unused#422", unimplementedFunc),
1082  /* 423 */ SyscallDesc("unused#423", unimplementedFunc),
1083  /* 424 */ SyscallDesc("unused#424", unimplementedFunc),
1084  /* 425 */ SyscallDesc("unused#425", unimplementedFunc),
1085  /* 426 */ SyscallDesc("unused#426", unimplementedFunc),
1086  /* 427 */ SyscallDesc("unused#427", unimplementedFunc),
1087  /* 428 */ SyscallDesc("unused#428", unimplementedFunc),
1088  /* 429 */ SyscallDesc("unused#429", unimplementedFunc),
1089  /* 430 */ SyscallDesc("unused#430", unimplementedFunc),
1090  /* 431 */ SyscallDesc("unused#431", unimplementedFunc),
1091  /* 432 */ SyscallDesc("unused#432", unimplementedFunc),
1092  /* 433 */ SyscallDesc("unused#433", unimplementedFunc),
1093  /* 434 */ SyscallDesc("unused#434", unimplementedFunc),
1094  /* 435 */ SyscallDesc("unused#435", unimplementedFunc),
1095  /* 436 */ SyscallDesc("unused#436", unimplementedFunc),
1096  /* 437 */ SyscallDesc("unused#437", unimplementedFunc),
1097  /* 438 */ SyscallDesc("unused#438", unimplementedFunc),
1098  /* 439 */ SyscallDesc("unused#439", unimplementedFunc),
1099  /* 440 */ SyscallDesc("unused#440", unimplementedFunc),
1100  /* 441 */ SyscallDesc("unused#441", unimplementedFunc),
1101  /* 442 */ SyscallDesc("unused#442", unimplementedFunc),
1102  /* 443 */ SyscallDesc("unused#443", unimplementedFunc),
1103  /* 444 */ SyscallDesc("unused#444", unimplementedFunc),
1104  /* 445 */ SyscallDesc("unused#445", unimplementedFunc),
1105  /* 446 */ SyscallDesc("unused#446", unimplementedFunc),
1106  /* 447 */ SyscallDesc("unused#447", unimplementedFunc),
1107  /* 448 */ SyscallDesc("unused#448", unimplementedFunc),
1108  /* 449 */ SyscallDesc("unused#449", unimplementedFunc),
1109  /* 450 */ SyscallDesc("unused#450", unimplementedFunc),
1110  /* 451 */ SyscallDesc("unused#451", unimplementedFunc),
1111  /* 452 */ SyscallDesc("unused#452", unimplementedFunc),
1112  /* 453 */ SyscallDesc("unused#453", unimplementedFunc),
1113  /* 454 */ SyscallDesc("unused#454", unimplementedFunc),
1114  /* 455 */ SyscallDesc("unused#455", unimplementedFunc),
1115  /* 456 */ SyscallDesc("unused#456", unimplementedFunc),
1116  /* 457 */ SyscallDesc("unused#457", unimplementedFunc),
1117  /* 458 */ SyscallDesc("unused#458", unimplementedFunc),
1118  /* 459 */ SyscallDesc("unused#459", unimplementedFunc),
1119  /* 460 */ SyscallDesc("unused#460", unimplementedFunc),
1120  /* 461 */ SyscallDesc("unused#461", unimplementedFunc),
1121  /* 462 */ SyscallDesc("unused#462", unimplementedFunc),
1122  /* 463 */ SyscallDesc("unused#463", unimplementedFunc),
1123  /* 464 */ SyscallDesc("unused#464", unimplementedFunc),
1124  /* 465 */ SyscallDesc("unused#465", unimplementedFunc),
1125  /* 466 */ SyscallDesc("unused#466", unimplementedFunc),
1126  /* 467 */ SyscallDesc("unused#467", unimplementedFunc),
1127  /* 468 */ SyscallDesc("unused#468", unimplementedFunc),
1128  /* 469 */ SyscallDesc("unused#469", unimplementedFunc),
1129  /* 470 */ SyscallDesc("unused#470", unimplementedFunc),
1130  /* 471 */ SyscallDesc("unused#471", unimplementedFunc),
1131  /* 472 */ SyscallDesc("unused#472", unimplementedFunc),
1132  /* 473 */ SyscallDesc("unused#473", unimplementedFunc),
1133  /* 474 */ SyscallDesc("unused#474", unimplementedFunc),
1134  /* 475 */ SyscallDesc("unused#475", unimplementedFunc),
1135  /* 476 */ SyscallDesc("unused#476", unimplementedFunc),
1136  /* 477 */ SyscallDesc("mmap", mmapFunc<ArmFreebsd64>),
1137  /* 478 */ SyscallDesc("unused#478", unimplementedFunc),
1138  /* 479 */ SyscallDesc("unused#479", unimplementedFunc),
1139  /* 480 */ SyscallDesc("unused#480", unimplementedFunc),
1140  /* 481 */ SyscallDesc("unused#481", unimplementedFunc),
1141  /* 482 */ SyscallDesc("unused#482", unimplementedFunc),
1142  /* 483 */ SyscallDesc("unused#483", unimplementedFunc),
1143  /* 484 */ SyscallDesc("unused#484", unimplementedFunc),
1144  /* 485 */ SyscallDesc("unused#485", unimplementedFunc),
1145  /* 486 */ SyscallDesc("unused#486", unimplementedFunc),
1146  /* 487 */ SyscallDesc("unused#487", unimplementedFunc),
1147  /* 488 */ SyscallDesc("unused#488", unimplementedFunc),
1148  /* 489 */ SyscallDesc("unused#489", unimplementedFunc),
1149  /* 490 */ SyscallDesc("unused#490", unimplementedFunc),
1150  /* 491 */ SyscallDesc("unused#491", unimplementedFunc),
1151  /* 492 */ SyscallDesc("unused#492", unimplementedFunc),
1152  /* 493 */ SyscallDesc("unused#493", unimplementedFunc),
1153  /* 494 */ SyscallDesc("unused#494", unimplementedFunc),
1154  /* 495 */ SyscallDesc("unused#495", unimplementedFunc),
1155  /* 496 */ SyscallDesc("unused#496", unimplementedFunc),
1156  /* 497 */ SyscallDesc("unused#497", unimplementedFunc),
1157  /* 498 */ SyscallDesc("unused#498", unimplementedFunc),
1158  /* 499 */ SyscallDesc("unused#499", unimplementedFunc),
1159  /* 500 */ SyscallDesc("unused#500", unimplementedFunc),
1160  /* 501 */ SyscallDesc("unused#501", unimplementedFunc),
1161  /* 502 */ SyscallDesc("unused#502", unimplementedFunc),
1162  /* 503 */ SyscallDesc("unused#503", unimplementedFunc),
1163  /* 504 */ SyscallDesc("unused#504", unimplementedFunc),
1164  /* 505 */ SyscallDesc("unused#505", unimplementedFunc),
1165  /* 506 */ SyscallDesc("unused#506", unimplementedFunc),
1166  /* 507 */ SyscallDesc("unused#507", unimplementedFunc),
1167  /* 508 */ SyscallDesc("unused#508", unimplementedFunc),
1168  /* 509 */ SyscallDesc("unused#509", unimplementedFunc),
1169  /* 510 */ SyscallDesc("unused#510", unimplementedFunc),
1170  /* 511 */ SyscallDesc("unused#511", unimplementedFunc),
1171  /* 512 */ SyscallDesc("unused#512", unimplementedFunc),
1172  /* 513 */ SyscallDesc("unused#513", unimplementedFunc),
1173  /* 514 */ SyscallDesc("unused#514", unimplementedFunc),
1174  /* 515 */ SyscallDesc("unused#515", unimplementedFunc),
1175  /* 516 */ SyscallDesc("unused#516", unimplementedFunc),
1176  /* 517 */ SyscallDesc("unused#517", unimplementedFunc),
1177  /* 518 */ SyscallDesc("unused#518", unimplementedFunc),
1178  /* 519 */ SyscallDesc("unused#519", unimplementedFunc),
1179  /* 520 */ SyscallDesc("unused#520", unimplementedFunc),
1180  /* 521 */ SyscallDesc("unused#521", unimplementedFunc),
1181  /* 522 */ SyscallDesc("unused#522", unimplementedFunc),
1182  /* 523 */ SyscallDesc("unused#523", unimplementedFunc),
1183  /* 524 */ SyscallDesc("unused#524", unimplementedFunc),
1184  /* 525 */ SyscallDesc("unused#525", unimplementedFunc),
1185  /* 526 */ SyscallDesc("unused#526", unimplementedFunc),
1186  /* 527 */ SyscallDesc("unused#527", unimplementedFunc),
1187  /* 528 */ SyscallDesc("unused#528", unimplementedFunc),
1188  /* 529 */ SyscallDesc("unused#529", unimplementedFunc),
1189  /* 530 */ SyscallDesc("unused#530", unimplementedFunc),
1190  /* 531 */ SyscallDesc("unused#531", unimplementedFunc),
1191  /* 532 */ SyscallDesc("unused#532", unimplementedFunc),
1192  /* 533 */ SyscallDesc("unused#533", unimplementedFunc),
1193  /* 534 */ SyscallDesc("unused#534", unimplementedFunc),
1194  /* 535 */ SyscallDesc("unused#535", unimplementedFunc),
1195  /* 536 */ SyscallDesc("unused#536", unimplementedFunc),
1196  /* 537 */ SyscallDesc("unused#537", unimplementedFunc),
1197  /* 538 */ SyscallDesc("unused#538", unimplementedFunc),
1198  /* 539 */ SyscallDesc("unused#539", unimplementedFunc),
1199  /* 540 */ SyscallDesc("unused#540", unimplementedFunc),
1200  /* 541 */ SyscallDesc("unused#541", unimplementedFunc),
1201  /* 542 */ SyscallDesc("unused#542", unimplementedFunc),
1202  /* 543 */ SyscallDesc("unused#543", unimplementedFunc),
1203  /* 544 */ SyscallDesc("unused#544", unimplementedFunc),
1204  /* 545 */ SyscallDesc("unused#545", unimplementedFunc),
1205  /* 546 */ SyscallDesc("unused#546", unimplementedFunc),
1206  /* 547 */ SyscallDesc("unused#547", unimplementedFunc),
1207 };
1208 
1210  ObjectFile *objFile, ObjectFile::Arch _arch)
1211  : ArmProcess32(params, objFile, _arch)
1212 {
1213  SyscallTable table;
1214 
1215  table.descs = syscallDescs32;
1216  table.size = sizeof(syscallDescs32) / sizeof(SyscallDesc);
1217  table.base = 0;
1218  syscallTables.push_back(table);
1219 }
1220 
1222  ObjectFile *objFile, ObjectFile::Arch _arch)
1223  : ArmProcess64(params, objFile, _arch)
1224 {
1225  SyscallTable table;
1226 
1227  table.descs = syscallDescs64;
1228  table.size = sizeof(syscallDescs64) / sizeof(SyscallDesc);
1229  table.base = 0;
1230  syscallTables.push_back(table);
1231 }
1232 
1233 SyscallDesc*
1235 {
1236 
1237  for (unsigned i = 0; i < syscallTables.size(); i++) {
1238  SyscallDesc *desc = syscallTables[i].getDesc(callnum);
1239  if (desc)
1240  return desc;
1241  }
1242  return NULL;
1243 }
1244 
1245 SyscallDesc *
1247 {
1248 
1249  int offset = callnum - base;
1250  if (offset < 0 || offset >= size)
1251  return NULL;
1252  return &descs[offset];
1253 }
1254 
1255 SyscallDesc*
1257 {
1258 
1259  return getFreebsdDesc(callnum);
1260 }
1261 
1262 SyscallDesc*
1264 {
1265 
1266  return getFreebsdDesc(callnum);
1267 }
1268 
1269 void
1271 {
1273  // The 32 bit equivalent of the comm page would be set up here.
1274 }
1275 
1276 void
1278 {
1280  // The 64 bit equivalent of the comm page would be set up here.
1281 }
Bitfield< 30, 0 > index
SyscallReturn brkFunc(SyscallDesc *desc, int num, Process *p, ThreadContext *tc)
Target brk() handler: set brk address.
void initState()
initState() is called on each SimObject when not restoring from a checkpoint.
Definition: process.cc:1270
Bitfield< 7 > i
Definition: miscregs.hh:1378
bool copyIn(SETranslatingPortProxy &memproxy)
copy data into simulator space (read from target memory)
SyscallReturn readlinkFunc(SyscallDesc *desc, int callnum, Process *process, ThreadContext *tc)
virtual TheISA::IntReg getSyscallArg(ThreadContext *tc, int &i)=0
Bitfield< 23, 0 > offset
Definition: types.hh:149
ThreadContext is the external interface to all thread state for anything outside of the CPU...
SyscallDesc * getDesc(int callnum)
Definition: process.cc:1256
void initState()
initState() is called on each SimObject when not restoring from a checkpoint.
Definition: process.cc:1277
bool copyOut(SETranslatingPortProxy &memproxy)
copy data out of simulator space (write to target memory)
SyscallReturn writeFunc(SyscallDesc *desc, int num, Process *p, ThreadContext *tc)
Target write() handler.
std::vector< SyscallTable > syscallTables
Definition: process.hh:54
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
static SyscallReturn sysctlFunc(SyscallDesc *desc, int callnum, Process *process, ThreadContext *tc)
Definition: process.cc:64
void initState()
initState() is called on each SimObject when not restoring from a checkpoint.
Definition: process.cc:100
void * bufferPtr()
Return a pointer to the internal simulator-space buffer.
static SyscallDesc syscallDescs64[]
Definition: process.cc:658
virtual SETranslatingPortProxy & getMemProxy()=0
static SyscallReturn issetugidFunc(SyscallDesc *desc, int callnum, Process *process, ThreadContext *tc)
Definition: process.cc:56
static SyscallDesc syscallDescs32[]
Definition: process.cc:107
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Definition: types.hh:142
This class provides the wrapper interface for the system call implementations which are defined in th...
Definition: syscall_desc.hh:63
This file defines objects used to emulate syscalls from the target application on the host machine...
ArmFreebsdProcess64(ProcessParams *params, ObjectFile *objFile, ObjectFile::Arch _arch)
Definition: process.cc:1221
SyscallDesc * getDesc(int offset) const
Definition: process.cc:1246
SyscallDesc * getFreebsdDesc(int callnum)
Definition: process.cc:1234
BufferArg represents an untyped buffer in target user space that is passed by reference to an (emulat...
SyscallReturn exitFunc(SyscallDesc *desc, int callnum, Process *p, ThreadContext *tc)
Target exit() handler: terminate current context.
SyscallDesc * getDesc(int callnum)
Definition: process.cc:1263
This class represents the return value from an emulated system call, including any errno setting...
SyscallReturn readFunc(SyscallDesc *desc, int num, Process *p, ThreadContext *tc)
ArmFreebsdProcess32(ProcessParams *params, ObjectFile *objFile, ObjectFile::Arch _arch)
Definition: process.cc:1209
void initState()
initState() is called on each SimObject when not restoring from a checkpoint.
Definition: process.cc:119

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