1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
|
/* Target syscall mappings for newlib/libgloss environment.
Copyright 1995-2023 Free Software Foundation, Inc.
Contributed by Mike Frysinger.
This file is part of simulators.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* This must come before any other includes. */
#include "defs.h"
#include "sim/callback.h"
#include "target-newlib-syscall.h"
/* This file is kept up-to-date via the gennltvals.py script. Do not edit
anything between the START & END comment blocks below. */
/* gennltvals: START */
CB_TARGET_DEFS_MAP cb_cr16_syscall_map[] = {
#ifdef CB_SYS_ARG
{ "ARG", CB_SYS_ARG, TARGET_NEWLIB_CR16_SYS_ARG },
#endif
#ifdef CB_SYS_chdir
{ "chdir", CB_SYS_chdir, TARGET_NEWLIB_CR16_SYS_chdir },
#endif
#ifdef CB_SYS_chmod
{ "chmod", CB_SYS_chmod, TARGET_NEWLIB_CR16_SYS_chmod },
#endif
#ifdef CB_SYS_chown
{ "chown", CB_SYS_chown, TARGET_NEWLIB_CR16_SYS_chown },
#endif
#ifdef CB_SYS_close
{ "close", CB_SYS_close, TARGET_NEWLIB_CR16_SYS_close },
#endif
#ifdef CB_SYS_create
{ "create", CB_SYS_create, TARGET_NEWLIB_CR16_SYS_create },
#endif
#ifdef CB_SYS_execv
{ "execv", CB_SYS_execv, TARGET_NEWLIB_CR16_SYS_execv },
#endif
#ifdef CB_SYS_execve
{ "execve", CB_SYS_execve, TARGET_NEWLIB_CR16_SYS_execve },
#endif
#ifdef CB_SYS_exit
{ "exit", CB_SYS_exit, TARGET_NEWLIB_CR16_SYS_exit },
#endif
#ifdef CB_SYS_fork
{ "fork", CB_SYS_fork, TARGET_NEWLIB_CR16_SYS_fork },
#endif
#ifdef CB_SYS_fstat
{ "fstat", CB_SYS_fstat, TARGET_NEWLIB_CR16_SYS_fstat },
#endif
#ifdef CB_SYS_getpid
{ "getpid", CB_SYS_getpid, TARGET_NEWLIB_CR16_SYS_getpid },
#endif
#ifdef CB_SYS_isatty
{ "isatty", CB_SYS_isatty, TARGET_NEWLIB_CR16_SYS_isatty },
#endif
#ifdef CB_SYS_kill
{ "kill", CB_SYS_kill, TARGET_NEWLIB_CR16_SYS_kill },
#endif
#ifdef CB_SYS_link
{ "link", CB_SYS_link, TARGET_NEWLIB_CR16_SYS_link },
#endif
#ifdef CB_SYS_lseek
{ "lseek", CB_SYS_lseek, TARGET_NEWLIB_CR16_SYS_lseek },
#endif
#ifdef CB_SYS_mknod
{ "mknod", CB_SYS_mknod, TARGET_NEWLIB_CR16_SYS_mknod },
#endif
#ifdef CB_SYS_open
{ "open", CB_SYS_open, TARGET_NEWLIB_CR16_SYS_open },
#endif
#ifdef CB_SYS_pipe
{ "pipe", CB_SYS_pipe, TARGET_NEWLIB_CR16_SYS_pipe },
#endif
#ifdef CB_SYS_read
{ "read", CB_SYS_read, TARGET_NEWLIB_CR16_SYS_read },
#endif
#ifdef CB_SYS_rename
{ "rename", CB_SYS_rename, TARGET_NEWLIB_CR16_SYS_rename },
#endif
#ifdef CB_SYS_stat
{ "stat", CB_SYS_stat, TARGET_NEWLIB_CR16_SYS_stat },
#endif
#ifdef CB_SYS_time
{ "time", CB_SYS_time, TARGET_NEWLIB_CR16_SYS_time },
#endif
#ifdef CB_SYS_unlink
{ "unlink", CB_SYS_unlink, TARGET_NEWLIB_CR16_SYS_unlink },
#endif
#ifdef CB_SYS_utime
{ "utime", CB_SYS_utime, TARGET_NEWLIB_CR16_SYS_utime },
#endif
#ifdef CB_SYS_wait
{ "wait", CB_SYS_wait, TARGET_NEWLIB_CR16_SYS_wait },
#endif
#ifdef CB_SYS_wait4
{ "wait4", CB_SYS_wait4, TARGET_NEWLIB_CR16_SYS_wait4 },
#endif
#ifdef CB_SYS_write
{ "write", CB_SYS_write, TARGET_NEWLIB_CR16_SYS_write },
#endif
{NULL, -1, -1},
};
CB_TARGET_DEFS_MAP cb_d10v_syscall_map[] = {
#ifdef CB_SYS_ARG
{ "ARG", CB_SYS_ARG, TARGET_NEWLIB_D10V_SYS_ARG },
#endif
#ifdef CB_SYS_chdir
{ "chdir", CB_SYS_chdir, TARGET_NEWLIB_D10V_SYS_chdir },
#endif
#ifdef CB_SYS_chmod
{ "chmod", CB_SYS_chmod, TARGET_NEWLIB_D10V_SYS_chmod },
#endif
#ifdef CB_SYS_chown
{ "chown", CB_SYS_chown, TARGET_NEWLIB_D10V_SYS_chown },
#endif
#ifdef CB_SYS_close
{ "close", CB_SYS_close, TARGET_NEWLIB_D10V_SYS_close },
#endif
#ifdef CB_SYS_creat
{ "creat", CB_SYS_creat, TARGET_NEWLIB_D10V_SYS_creat },
#endif
#ifdef CB_SYS_execv
{ "execv", CB_SYS_execv, TARGET_NEWLIB_D10V_SYS_execv },
#endif
#ifdef CB_SYS_execve
{ "execve", CB_SYS_execve, TARGET_NEWLIB_D10V_SYS_execve },
#endif
#ifdef CB_SYS_exit
{ "exit", CB_SYS_exit, TARGET_NEWLIB_D10V_SYS_exit },
#endif
#ifdef CB_SYS_fork
{ "fork", CB_SYS_fork, TARGET_NEWLIB_D10V_SYS_fork },
#endif
#ifdef CB_SYS_fstat
{ "fstat", CB_SYS_fstat, TARGET_NEWLIB_D10V_SYS_fstat },
#endif
#ifdef CB_SYS_getpid
{ "getpid", CB_SYS_getpid, TARGET_NEWLIB_D10V_SYS_getpid },
#endif
#ifdef CB_SYS_isatty
{ "isatty", CB_SYS_isatty, TARGET_NEWLIB_D10V_SYS_isatty },
#endif
#ifdef CB_SYS_kill
{ "kill", CB_SYS_kill, TARGET_NEWLIB_D10V_SYS_kill },
#endif
#ifdef CB_SYS_link
{ "link", CB_SYS_link, TARGET_NEWLIB_D10V_SYS_link },
#endif
#ifdef CB_SYS_lseek
{ "lseek", CB_SYS_lseek, TARGET_NEWLIB_D10V_SYS_lseek },
#endif
#ifdef CB_SYS_mknod
{ "mknod", CB_SYS_mknod, TARGET_NEWLIB_D10V_SYS_mknod },
#endif
#ifdef CB_SYS_open
{ "open", CB_SYS_open, TARGET_NEWLIB_D10V_SYS_open },
#endif
#ifdef CB_SYS_pipe
{ "pipe", CB_SYS_pipe, TARGET_NEWLIB_D10V_SYS_pipe },
#endif
#ifdef CB_SYS_read
{ "read", CB_SYS_read, TARGET_NEWLIB_D10V_SYS_read },
#endif
#ifdef CB_SYS_stat
{ "stat", CB_SYS_stat, TARGET_NEWLIB_D10V_SYS_stat },
#endif
#ifdef CB_SYS_time
{ "time", CB_SYS_time, TARGET_NEWLIB_D10V_SYS_time },
#endif
#ifdef CB_SYS_unlink
{ "unlink", CB_SYS_unlink, TARGET_NEWLIB_D10V_SYS_unlink },
#endif
#ifdef CB_SYS_utime
{ "utime", CB_SYS_utime, TARGET_NEWLIB_D10V_SYS_utime },
#endif
#ifdef CB_SYS_wait
{ "wait", CB_SYS_wait, TARGET_NEWLIB_D10V_SYS_wait },
#endif
#ifdef CB_SYS_wait4
{ "wait4", CB_SYS_wait4, TARGET_NEWLIB_D10V_SYS_wait4 },
#endif
#ifdef CB_SYS_write
{ "write", CB_SYS_write, TARGET_NEWLIB_D10V_SYS_write },
#endif
{NULL, -1, -1},
};
CB_TARGET_DEFS_MAP cb_mcore_syscall_map[] = {
#ifdef CB_SYS_access
{ "access", CB_SYS_access, TARGET_NEWLIB_MCORE_SYS_access },
#endif
#ifdef CB_SYS_close
{ "close", CB_SYS_close, TARGET_NEWLIB_MCORE_SYS_close },
#endif
#ifdef CB_SYS_creat
{ "creat", CB_SYS_creat, TARGET_NEWLIB_MCORE_SYS_creat },
#endif
#ifdef CB_SYS_link
{ "link", CB_SYS_link, TARGET_NEWLIB_MCORE_SYS_link },
#endif
#ifdef CB_SYS_lseek
{ "lseek", CB_SYS_lseek, TARGET_NEWLIB_MCORE_SYS_lseek },
#endif
#ifdef CB_SYS_open
{ "open", CB_SYS_open, TARGET_NEWLIB_MCORE_SYS_open },
#endif
#ifdef CB_SYS_read
{ "read", CB_SYS_read, TARGET_NEWLIB_MCORE_SYS_read },
#endif
#ifdef CB_SYS_time
{ "time", CB_SYS_time, TARGET_NEWLIB_MCORE_SYS_time },
#endif
#ifdef CB_SYS_times
{ "times", CB_SYS_times, TARGET_NEWLIB_MCORE_SYS_times },
#endif
#ifdef CB_SYS_unlink
{ "unlink", CB_SYS_unlink, TARGET_NEWLIB_MCORE_SYS_unlink },
#endif
#ifdef CB_SYS_write
{ "write", CB_SYS_write, TARGET_NEWLIB_MCORE_SYS_write },
#endif
{NULL, -1, -1},
};
CB_TARGET_DEFS_MAP cb_riscv_syscall_map[] = {
#ifdef CB_SYS_access
{ "access", CB_SYS_access, TARGET_NEWLIB_RISCV_SYS_access },
#endif
#ifdef CB_SYS_brk
{ "brk", CB_SYS_brk, TARGET_NEWLIB_RISCV_SYS_brk },
#endif
#ifdef CB_SYS_chdir
{ "chdir", CB_SYS_chdir, TARGET_NEWLIB_RISCV_SYS_chdir },
#endif
#ifdef CB_SYS_clock_gettime64
{ "clock_gettime64", CB_SYS_clock_gettime64, TARGET_NEWLIB_RISCV_SYS_clock_gettime64 },
#endif
#ifdef CB_SYS_close
{ "close", CB_SYS_close, TARGET_NEWLIB_RISCV_SYS_close },
#endif
#ifdef CB_SYS_dup
{ "dup", CB_SYS_dup, TARGET_NEWLIB_RISCV_SYS_dup },
#endif
#ifdef CB_SYS_exit
{ "exit", CB_SYS_exit, TARGET_NEWLIB_RISCV_SYS_exit },
#endif
#ifdef CB_SYS_exit_group
{ "exit_group", CB_SYS_exit_group, TARGET_NEWLIB_RISCV_SYS_exit_group },
#endif
#ifdef CB_SYS_faccessat
{ "faccessat", CB_SYS_faccessat, TARGET_NEWLIB_RISCV_SYS_faccessat },
#endif
#ifdef CB_SYS_fcntl
{ "fcntl", CB_SYS_fcntl, TARGET_NEWLIB_RISCV_SYS_fcntl },
#endif
#ifdef CB_SYS_fstat
{ "fstat", CB_SYS_fstat, TARGET_NEWLIB_RISCV_SYS_fstat },
#endif
#ifdef CB_SYS_fstatat
{ "fstatat", CB_SYS_fstatat, TARGET_NEWLIB_RISCV_SYS_fstatat },
#endif
#ifdef CB_SYS_getcwd
{ "getcwd", CB_SYS_getcwd, TARGET_NEWLIB_RISCV_SYS_getcwd },
#endif
#ifdef CB_SYS_getdents
{ "getdents", CB_SYS_getdents, TARGET_NEWLIB_RISCV_SYS_getdents },
#endif
#ifdef CB_SYS_getegid
{ "getegid", CB_SYS_getegid, TARGET_NEWLIB_RISCV_SYS_getegid },
#endif
#ifdef CB_SYS_geteuid
{ "geteuid", CB_SYS_geteuid, TARGET_NEWLIB_RISCV_SYS_geteuid },
#endif
#ifdef CB_SYS_getgid
{ "getgid", CB_SYS_getgid, TARGET_NEWLIB_RISCV_SYS_getgid },
#endif
#ifdef CB_SYS_getmainvars
{ "getmainvars", CB_SYS_getmainvars, TARGET_NEWLIB_RISCV_SYS_getmainvars },
#endif
#ifdef CB_SYS_getpid
{ "getpid", CB_SYS_getpid, TARGET_NEWLIB_RISCV_SYS_getpid },
#endif
#ifdef CB_SYS_gettimeofday
{ "gettimeofday", CB_SYS_gettimeofday, TARGET_NEWLIB_RISCV_SYS_gettimeofday },
#endif
#ifdef CB_SYS_getuid
{ "getuid", CB_SYS_getuid, TARGET_NEWLIB_RISCV_SYS_getuid },
#endif
#ifdef CB_SYS_kill
{ "kill", CB_SYS_kill, TARGET_NEWLIB_RISCV_SYS_kill },
#endif
#ifdef CB_SYS_link
{ "link", CB_SYS_link, TARGET_NEWLIB_RISCV_SYS_link },
#endif
#ifdef CB_SYS_lseek
{ "lseek", CB_SYS_lseek, TARGET_NEWLIB_RISCV_SYS_lseek },
#endif
#ifdef CB_SYS_lstat
{ "lstat", CB_SYS_lstat, TARGET_NEWLIB_RISCV_SYS_lstat },
#endif
#ifdef CB_SYS_mkdir
{ "mkdir", CB_SYS_mkdir, TARGET_NEWLIB_RISCV_SYS_mkdir },
#endif
#ifdef CB_SYS_mmap
{ "mmap", CB_SYS_mmap, TARGET_NEWLIB_RISCV_SYS_mmap },
#endif
#ifdef CB_SYS_mremap
{ "mremap", CB_SYS_mremap, TARGET_NEWLIB_RISCV_SYS_mremap },
#endif
#ifdef CB_SYS_munmap
{ "munmap", CB_SYS_munmap, TARGET_NEWLIB_RISCV_SYS_munmap },
#endif
#ifdef CB_SYS_open
{ "open", CB_SYS_open, TARGET_NEWLIB_RISCV_SYS_open },
#endif
#ifdef CB_SYS_openat
{ "openat", CB_SYS_openat, TARGET_NEWLIB_RISCV_SYS_openat },
#endif
#ifdef CB_SYS_pread
{ "pread", CB_SYS_pread, TARGET_NEWLIB_RISCV_SYS_pread },
#endif
#ifdef CB_SYS_pwrite
{ "pwrite", CB_SYS_pwrite, TARGET_NEWLIB_RISCV_SYS_pwrite },
#endif
#ifdef CB_SYS_read
{ "read", CB_SYS_read, TARGET_NEWLIB_RISCV_SYS_read },
#endif
#ifdef CB_SYS_rt_sigaction
{ "rt_sigaction", CB_SYS_rt_sigaction, TARGET_NEWLIB_RISCV_SYS_rt_sigaction },
#endif
#ifdef CB_SYS_stat
{ "stat", CB_SYS_stat, TARGET_NEWLIB_RISCV_SYS_stat },
#endif
#ifdef CB_SYS_time
{ "time", CB_SYS_time, TARGET_NEWLIB_RISCV_SYS_time },
#endif
#ifdef CB_SYS_times
{ "times", CB_SYS_times, TARGET_NEWLIB_RISCV_SYS_times },
#endif
#ifdef CB_SYS_uname
{ "uname", CB_SYS_uname, TARGET_NEWLIB_RISCV_SYS_uname },
#endif
#ifdef CB_SYS_unlink
{ "unlink", CB_SYS_unlink, TARGET_NEWLIB_RISCV_SYS_unlink },
#endif
#ifdef CB_SYS_write
{ "write", CB_SYS_write, TARGET_NEWLIB_RISCV_SYS_write },
#endif
#ifdef CB_SYS_writev
{ "writev", CB_SYS_writev, TARGET_NEWLIB_RISCV_SYS_writev },
#endif
{NULL, -1, -1},
};
CB_TARGET_DEFS_MAP cb_sh_syscall_map[] = {
#ifdef CB_SYS_ARG
{ "ARG", CB_SYS_ARG, TARGET_NEWLIB_SH_SYS_ARG },
#endif
#ifdef CB_SYS_argc
{ "argc", CB_SYS_argc, TARGET_NEWLIB_SH_SYS_argc },
#endif
#ifdef CB_SYS_argn
{ "argn", CB_SYS_argn, TARGET_NEWLIB_SH_SYS_argn },
#endif
#ifdef CB_SYS_argnlen
{ "argnlen", CB_SYS_argnlen, TARGET_NEWLIB_SH_SYS_argnlen },
#endif
#ifdef CB_SYS_chdir
{ "chdir", CB_SYS_chdir, TARGET_NEWLIB_SH_SYS_chdir },
#endif
#ifdef CB_SYS_chmod
{ "chmod", CB_SYS_chmod, TARGET_NEWLIB_SH_SYS_chmod },
#endif
#ifdef CB_SYS_chown
{ "chown", CB_SYS_chown, TARGET_NEWLIB_SH_SYS_chown },
#endif
#ifdef CB_SYS_close
{ "close", CB_SYS_close, TARGET_NEWLIB_SH_SYS_close },
#endif
#ifdef CB_SYS_creat
{ "creat", CB_SYS_creat, TARGET_NEWLIB_SH_SYS_creat },
#endif
#ifdef CB_SYS_execv
{ "execv", CB_SYS_execv, TARGET_NEWLIB_SH_SYS_execv },
#endif
#ifdef CB_SYS_execve
{ "execve", CB_SYS_execve, TARGET_NEWLIB_SH_SYS_execve },
#endif
#ifdef CB_SYS_exit
{ "exit", CB_SYS_exit, TARGET_NEWLIB_SH_SYS_exit },
#endif
#ifdef CB_SYS_fork
{ "fork", CB_SYS_fork, TARGET_NEWLIB_SH_SYS_fork },
#endif
#ifdef CB_SYS_fstat
{ "fstat", CB_SYS_fstat, TARGET_NEWLIB_SH_SYS_fstat },
#endif
#ifdef CB_SYS_ftruncate
{ "ftruncate", CB_SYS_ftruncate, TARGET_NEWLIB_SH_SYS_ftruncate },
#endif
#ifdef CB_SYS_getpid
{ "getpid", CB_SYS_getpid, TARGET_NEWLIB_SH_SYS_getpid },
#endif
#ifdef CB_SYS_isatty
{ "isatty", CB_SYS_isatty, TARGET_NEWLIB_SH_SYS_isatty },
#endif
#ifdef CB_SYS_link
{ "link", CB_SYS_link, TARGET_NEWLIB_SH_SYS_link },
#endif
#ifdef CB_SYS_lseek
{ "lseek", CB_SYS_lseek, TARGET_NEWLIB_SH_SYS_lseek },
#endif
#ifdef CB_SYS_mknod
{ "mknod", CB_SYS_mknod, TARGET_NEWLIB_SH_SYS_mknod },
#endif
#ifdef CB_SYS_open
{ "open", CB_SYS_open, TARGET_NEWLIB_SH_SYS_open },
#endif
#ifdef CB_SYS_pipe
{ "pipe", CB_SYS_pipe, TARGET_NEWLIB_SH_SYS_pipe },
#endif
#ifdef CB_SYS_read
{ "read", CB_SYS_read, TARGET_NEWLIB_SH_SYS_read },
#endif
#ifdef CB_SYS_stat
{ "stat", CB_SYS_stat, TARGET_NEWLIB_SH_SYS_stat },
#endif
#ifdef CB_SYS_time
{ "time", CB_SYS_time, TARGET_NEWLIB_SH_SYS_time },
#endif
#ifdef CB_SYS_truncate
{ "truncate", CB_SYS_truncate, TARGET_NEWLIB_SH_SYS_truncate },
#endif
#ifdef CB_SYS_unlink
{ "unlink", CB_SYS_unlink, TARGET_NEWLIB_SH_SYS_unlink },
#endif
#ifdef CB_SYS_utime
{ "utime", CB_SYS_utime, TARGET_NEWLIB_SH_SYS_utime },
#endif
#ifdef CB_SYS_wait
{ "wait", CB_SYS_wait, TARGET_NEWLIB_SH_SYS_wait },
#endif
#ifdef CB_SYS_wait4
{ "wait4", CB_SYS_wait4, TARGET_NEWLIB_SH_SYS_wait4 },
#endif
#ifdef CB_SYS_write
{ "write", CB_SYS_write, TARGET_NEWLIB_SH_SYS_write },
#endif
{NULL, -1, -1},
};
CB_TARGET_DEFS_MAP cb_v850_syscall_map[] = {
#ifdef CB_SYS_ARG
{ "ARG", CB_SYS_ARG, TARGET_NEWLIB_V850_SYS_ARG },
#endif
#ifdef CB_SYS_chdir
{ "chdir", CB_SYS_chdir, TARGET_NEWLIB_V850_SYS_chdir },
#endif
#ifdef CB_SYS_chmod
{ "chmod", CB_SYS_chmod, TARGET_NEWLIB_V850_SYS_chmod },
#endif
#ifdef CB_SYS_chown
{ "chown", CB_SYS_chown, TARGET_NEWLIB_V850_SYS_chown },
#endif
#ifdef CB_SYS_close
{ "close", CB_SYS_close, TARGET_NEWLIB_V850_SYS_close },
#endif
#ifdef CB_SYS_creat
{ "creat", CB_SYS_creat, TARGET_NEWLIB_V850_SYS_creat },
#endif
#ifdef CB_SYS_execv
{ "execv", CB_SYS_execv, TARGET_NEWLIB_V850_SYS_execv },
#endif
#ifdef CB_SYS_execve
{ "execve", CB_SYS_execve, TARGET_NEWLIB_V850_SYS_execve },
#endif
#ifdef CB_SYS_exit
{ "exit", CB_SYS_exit, TARGET_NEWLIB_V850_SYS_exit },
#endif
#ifdef CB_SYS_fork
{ "fork", CB_SYS_fork, TARGET_NEWLIB_V850_SYS_fork },
#endif
#ifdef CB_SYS_fstat
{ "fstat", CB_SYS_fstat, TARGET_NEWLIB_V850_SYS_fstat },
#endif
#ifdef CB_SYS_getpid
{ "getpid", CB_SYS_getpid, TARGET_NEWLIB_V850_SYS_getpid },
#endif
#ifdef CB_SYS_gettimeofday
{ "gettimeofday", CB_SYS_gettimeofday, TARGET_NEWLIB_V850_SYS_gettimeofday },
#endif
#ifdef CB_SYS_isatty
{ "isatty", CB_SYS_isatty, TARGET_NEWLIB_V850_SYS_isatty },
#endif
#ifdef CB_SYS_link
{ "link", CB_SYS_link, TARGET_NEWLIB_V850_SYS_link },
#endif
#ifdef CB_SYS_lseek
{ "lseek", CB_SYS_lseek, TARGET_NEWLIB_V850_SYS_lseek },
#endif
#ifdef CB_SYS_mknod
{ "mknod", CB_SYS_mknod, TARGET_NEWLIB_V850_SYS_mknod },
#endif
#ifdef CB_SYS_open
{ "open", CB_SYS_open, TARGET_NEWLIB_V850_SYS_open },
#endif
#ifdef CB_SYS_pipe
{ "pipe", CB_SYS_pipe, TARGET_NEWLIB_V850_SYS_pipe },
#endif
#ifdef CB_SYS_read
{ "read", CB_SYS_read, TARGET_NEWLIB_V850_SYS_read },
#endif
#ifdef CB_SYS_rename
{ "rename", CB_SYS_rename, TARGET_NEWLIB_V850_SYS_rename },
#endif
#ifdef CB_SYS_stat
{ "stat", CB_SYS_stat, TARGET_NEWLIB_V850_SYS_stat },
#endif
#ifdef CB_SYS_time
{ "time", CB_SYS_time, TARGET_NEWLIB_V850_SYS_time },
#endif
#ifdef CB_SYS_times
{ "times", CB_SYS_times, TARGET_NEWLIB_V850_SYS_times },
#endif
#ifdef CB_SYS_unlink
{ "unlink", CB_SYS_unlink, TARGET_NEWLIB_V850_SYS_unlink },
#endif
#ifdef CB_SYS_utime
{ "utime", CB_SYS_utime, TARGET_NEWLIB_V850_SYS_utime },
#endif
#ifdef CB_SYS_wait
{ "wait", CB_SYS_wait, TARGET_NEWLIB_V850_SYS_wait },
#endif
#ifdef CB_SYS_wait4
{ "wait4", CB_SYS_wait4, TARGET_NEWLIB_V850_SYS_wait4 },
#endif
#ifdef CB_SYS_write
{ "write", CB_SYS_write, TARGET_NEWLIB_V850_SYS_write },
#endif
{NULL, -1, -1},
};
CB_TARGET_DEFS_MAP cb_init_syscall_map[] = {
#ifdef CB_SYS_argc
{ "argc", CB_SYS_argc, TARGET_NEWLIB_SYS_argc },
#endif
#ifdef CB_SYS_argn
{ "argn", CB_SYS_argn, TARGET_NEWLIB_SYS_argn },
#endif
#ifdef CB_SYS_argnlen
{ "argnlen", CB_SYS_argnlen, TARGET_NEWLIB_SYS_argnlen },
#endif
#ifdef CB_SYS_argv
{ "argv", CB_SYS_argv, TARGET_NEWLIB_SYS_argv },
#endif
#ifdef CB_SYS_argvlen
{ "argvlen", CB_SYS_argvlen, TARGET_NEWLIB_SYS_argvlen },
#endif
#ifdef CB_SYS_chdir
{ "chdir", CB_SYS_chdir, TARGET_NEWLIB_SYS_chdir },
#endif
#ifdef CB_SYS_chmod
{ "chmod", CB_SYS_chmod, TARGET_NEWLIB_SYS_chmod },
#endif
#ifdef CB_SYS_close
{ "close", CB_SYS_close, TARGET_NEWLIB_SYS_close },
#endif
#ifdef CB_SYS_exit
{ "exit", CB_SYS_exit, TARGET_NEWLIB_SYS_exit },
#endif
#ifdef CB_SYS_fstat
{ "fstat", CB_SYS_fstat, TARGET_NEWLIB_SYS_fstat },
#endif
#ifdef CB_SYS_getpid
{ "getpid", CB_SYS_getpid, TARGET_NEWLIB_SYS_getpid },
#endif
#ifdef CB_SYS_gettimeofday
{ "gettimeofday", CB_SYS_gettimeofday, TARGET_NEWLIB_SYS_gettimeofday },
#endif
#ifdef CB_SYS_kill
{ "kill", CB_SYS_kill, TARGET_NEWLIB_SYS_kill },
#endif
#ifdef CB_SYS_link
{ "link", CB_SYS_link, TARGET_NEWLIB_SYS_link },
#endif
#ifdef CB_SYS_lseek
{ "lseek", CB_SYS_lseek, TARGET_NEWLIB_SYS_lseek },
#endif
#ifdef CB_SYS_open
{ "open", CB_SYS_open, TARGET_NEWLIB_SYS_open },
#endif
#ifdef CB_SYS_read
{ "read", CB_SYS_read, TARGET_NEWLIB_SYS_read },
#endif
#ifdef CB_SYS_reconfig
{ "reconfig", CB_SYS_reconfig, TARGET_NEWLIB_SYS_reconfig },
#endif
#ifdef CB_SYS_stat
{ "stat", CB_SYS_stat, TARGET_NEWLIB_SYS_stat },
#endif
#ifdef CB_SYS_time
{ "time", CB_SYS_time, TARGET_NEWLIB_SYS_time },
#endif
#ifdef CB_SYS_times
{ "times", CB_SYS_times, TARGET_NEWLIB_SYS_times },
#endif
#ifdef CB_SYS_unlink
{ "unlink", CB_SYS_unlink, TARGET_NEWLIB_SYS_unlink },
#endif
#ifdef CB_SYS_utime
{ "utime", CB_SYS_utime, TARGET_NEWLIB_SYS_utime },
#endif
#ifdef CB_SYS_write
{ "write", CB_SYS_write, TARGET_NEWLIB_SYS_write },
#endif
{NULL, -1, -1},
};
/* gennltvals: END */
|