2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 * Authors: Nathan Binkert
31 #include "kern/tru64/tru64_syscalls.hh"
35 standard_strings
[SystemCalls
<Tru64
>::StandardNumber
] = {
55 "pre_F64_getfsstat", // 18
63 "exec_with_loader", // 25
83 "set_program_attributes", // 43
86 "obsolete_osigaction", // 46
109 "pre_F64_stat", // 67
110 "pre_F64_lstat", // 68
133 "getdtablesize", // 89
136 "pre_F64_fstat", // 91
146 "getpriority", // 100
155 "old_sigblock", // 109
157 "old_sigsetmask", // 110
160 "old_recvmsg", // 113
161 "old_sendmsg", // 114
162 "obsolete_vtrcae", // 115
163 "gettimeofday", // 116
166 "numa_syscalls", // 119
170 "settimeofday", // 122
173 "old_recvfrom", // 125
188 "obsolete_42_sigreturn", // 139
191 "old_getpeername", // 141
201 "old_getsockname", // 150
205 "pid_unblock", // 154
206 "signal_urti", // 155
208 "sigwaitprim", // 157
210 "getdirentries", // 159
212 "pre_F64_statfs", // 160
213 "pre_F64_fstatfs", // 161
215 "async_daemon", // 163
217 "getdomainname", // 165
218 "setdomainname", // 166
241 "alt_sigpending", // 187
271 "getaddressconf", // 214
276 "utc_gettime", // 219
278 "utc_adjtime", // 220
289 "gettimeofday64", // 230
290 "settimeofday64", // 231
294 "sigaltstack", // 235
296 "priocntlset", // 237
298 "set_speculative", // 239
300 "msfs_syscall", // 240
304 "proplist_syscall", // 244
305 "ntp_adjtime", // 245
306 "ntp_gettime", // 246
312 "usleep_thread", // 251
316 "subsys_info", // 255
319 "afs_syscall", // 258
326 "_F64_writev", // 264
332 mach_strings
[SystemCalls
<Tru64
>::MachNumber
] = {
345 "thread_reply", // 11
355 "msg_send_trap", // 20
356 "msg_receive_trap", // 21
357 "msg_rpc_trap", // 22
364 "nxm_thread_destroy", // 29
368 "nxm_thread_create", // 32
369 "nxm_task_init", // 33
372 "nxm_wakeup_idle", // 36
373 "nxm_set_pthid", // 37
374 "nxm_thread_kill", // 38
375 "nxm_thread_block", // 39
377 "nxm_thread_wakeup", // 40
378 "init_process", // 41
379 "nxm_get_binding", // 42
382 "nxm_set_cancel", // 45
383 "nxm_set_binding", // 46
384 "stack_create", // 47
385 "nxm_get_state", // 48
386 "nxm_thread_suspend", // 49
388 "nxm_thread_resume", // 50
389 "nxm_signal_check", // 51
390 "htg_unix_syscall", // 52
394 "host_priv_self", // 56
400 "thread_switch", // 61
402 "nxm_pshared_init", // 63
403 "nxm_pshared_block", // 64
404 "nxm_pshared_unblock", // 65
405 "nxm_pshared_destroy", // 66
406 "nxm_swtch_pri", // 67
410 "mach_sctimes_0", // 70
411 "mach_sctimes_1", // 71
412 "mach_sctimes_2", // 72
413 "mach_sctimes_3", // 73
414 "mach_sctimes_4", // 74
415 "mach_sctimes_5", // 75
416 "mach_sctimes_6", // 76
417 "mach_sctimes_7", // 77
418 "mach_sctimes_8", // 78
419 "mach_sctimes_9", // 79
421 "mach_sctimes_10", // 80
422 "mach_sctimes_11", // 81
423 "mach_sctimes_port_alloc_dealloc", // 82
428 SystemCalls
<Tru64
>::name(int num
)
432 else if (num
>= StandardNumber
)
433 return mach_strings
[num
- StandardNumber
];
435 return standard_strings
[num
];
436 else if (num
> -MachNumber
)
437 return mach_strings
[-num
];