This commit is contained in:
skrll 2016-09-23 14:12:24 +00:00
parent 8d3f056d60
commit 8f1704bf5a
6 changed files with 124 additions and 23 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscall.h,v 1.123 2016/09/10 08:19:58 skrll Exp $ */
/* $NetBSD: netbsd32_syscall.h,v 1.124 2016/09/23 14:12:24 skrll Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.113 2016/09/10 08:18:45 skrll Exp
* created from NetBSD: syscalls.master,v 1.114 2016/09/23 14:10:28 skrll Exp
*/
#ifndef _NETBSD32_SYS_SYSCALL_H_
@ -1257,6 +1257,12 @@
/* syscall: "netbsd32_fdiscard" ret: "int" args: "int" "int" "netbsd32_off_t" "netbsd32_off_t" */
#define NETBSD32_SYS_netbsd32_fdiscard 480
#define NETBSD32_SYS_MAXSYSCALL 481
/* syscall: "netbsd32_wait6" ret: "int" args: "idtype_t" "id_t" "netbsd32_intp" "int" "netbsd32_wrusagep_t" "netbsd32_siginfop_t" */
#define NETBSD32_SYS_netbsd32_wait6 481
/* syscall: "netbsd32_clock_getcpuclockid2" ret: "int" args: "idtype_t" "id_t" "netbsd32_clockidp_t" */
#define NETBSD32_SYS_netbsd32_clock_getcpuclockid2 482
#define NETBSD32_SYS_MAXSYSCALL 483
#define NETBSD32_SYS_NSYSENT 512
#endif /* _NETBSD32_SYS_SYSCALL_H_ */

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscallargs.h,v 1.123 2016/09/10 08:19:58 skrll Exp $ */
/* $NetBSD: netbsd32_syscallargs.h,v 1.124 2016/09/23 14:12:24 skrll Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.113 2016/09/10 08:18:45 skrll Exp
* created from NetBSD: syscalls.master,v 1.114 2016/09/23 14:10:28 skrll Exp
*/
#ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@ -2583,6 +2583,23 @@ struct netbsd32_fdiscard_args {
};
check_syscall_args(netbsd32_fdiscard)
struct netbsd32_wait6_args {
syscallarg(idtype_t) idtype;
syscallarg(id_t) id;
syscallarg(netbsd32_intp) status;
syscallarg(int) options;
syscallarg(netbsd32_wrusagep_t) wru;
syscallarg(netbsd32_siginfop_t) info;
};
check_syscall_args(netbsd32_wait6)
struct netbsd32_clock_getcpuclockid2_args {
syscallarg(idtype_t) idtype;
syscallarg(id_t) id;
syscallarg(netbsd32_clockidp_t) clock_id;
};
check_syscall_args(netbsd32_clock_getcpuclockid2)
/*
* System call prototypes.
*/
@ -3402,4 +3419,8 @@ int netbsd32_posix_fallocate(struct lwp *, const struct netbsd32_posix_fallocate
int netbsd32_fdiscard(struct lwp *, const struct netbsd32_fdiscard_args *, register_t *);
int netbsd32_wait6(struct lwp *, const struct netbsd32_wait6_args *, register_t *);
int netbsd32_clock_getcpuclockid2(struct lwp *, const struct netbsd32_clock_getcpuclockid2_args *, register_t *);
#endif /* _NETBSD32_SYS_SYSCALLARGS_H_ */

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_syscalls.c,v 1.122 2016/09/10 08:19:58 skrll Exp $ */
/* $NetBSD: netbsd32_syscalls.c,v 1.123 2016/09/23 14:12:24 skrll Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.113 2016/09/10 08:18:45 skrll Exp
* created from NetBSD: syscalls.master,v 1.114 2016/09/23 14:10:28 skrll Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.122 2016/09/10 08:19:58 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.123 2016/09/23 14:12:24 skrll Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -522,8 +522,8 @@ const char *const netbsd32_syscallnames[] = {
/* 478 */ "netbsd32____lwp_park60",
/* 479 */ "netbsd32_posix_fallocate",
/* 480 */ "netbsd32_fdiscard",
/* 481 */ "# filler",
/* 482 */ "# filler",
/* 481 */ "netbsd32_wait6",
/* 482 */ "netbsd32_clock_getcpuclockid2",
/* 483 */ "# filler",
/* 484 */ "# filler",
/* 485 */ "# filler",
@ -1052,8 +1052,8 @@ const char *const altnetbsd32_syscallnames[] = {
/* 478 */ "_lwp_park",
/* 479 */ "posix_fallocate",
/* 480 */ "fdiscard",
/* 481 */ NULL, /* filler */
/* 482 */ NULL, /* filler */
/* 481 */ "wait6",
/* 482 */ "clock_getcpuclockid2",
/* 483 */ NULL, /* filler */
/* 484 */ NULL, /* filler */
/* 485 */ NULL, /* filler */

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.5 2016/09/10 08:19:58 skrll Exp $ */
/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.6 2016/09/23 14:12:25 skrll Exp $ */
/*
* System call autoload table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.113 2016/09/10 08:18:45 skrll Exp
* created from NetBSD: syscalls.master,v 1.114 2016/09/23 14:10:28 skrll Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.5 2016/09/10 08:19:58 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.6 2016/09/23 14:12:25 skrll Exp $");
#include <sys/proc.h>
static struct sc_autoload netbsd32_syscalls_autoload[] = {

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_sysent.c,v 1.122 2016/09/10 08:19:58 skrll Exp $ */
/* $NetBSD: netbsd32_sysent.c,v 1.123 2016/09/23 14:12:25 skrll Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.113 2016/09/10 08:18:45 skrll Exp
* created from NetBSD: syscalls.master,v 1.114 2016/09/23 14:10:28 skrll Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.122 2016/09/10 08:19:58 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.123 2016/09/23 14:12:25 skrll Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@ -1962,11 +1962,13 @@ struct sysent netbsd32_sysent[] = {
.sy_call = (sy_call_t *)netbsd32_fdiscard
}, /* 480 = netbsd32_fdiscard */
{
.sy_call = sys_nosys,
}, /* 481 = filler */
ns(struct netbsd32_wait6_args),
.sy_call = (sy_call_t *)netbsd32_wait6
}, /* 481 = netbsd32_wait6 */
{
.sy_call = sys_nosys,
}, /* 482 = filler */
ns(struct netbsd32_clock_getcpuclockid2_args),
.sy_call = (sy_call_t *)netbsd32_clock_getcpuclockid2
}, /* 482 = netbsd32_clock_getcpuclockid2 */
{
.sy_call = sys_nosys,
}, /* 483 = filler */

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_systrace_args.c,v 1.13 2016/09/10 08:19:58 skrll Exp $ */
/* $NetBSD: netbsd32_systrace_args.c,v 1.14 2016/09/23 14:12:25 skrll Exp $ */
/*
* System call argument to DTrace register array converstion.
@ -3450,6 +3450,27 @@ systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_
*n_args = 4;
break;
}
/* netbsd32_wait6 */
case 481: {
struct netbsd32_wait6_args *p = params;
iarg[0] = SCARG(p, idtype); /* idtype_t */
iarg[1] = SCARG(p, id); /* id_t */
uarg[2] = (intptr_t) SCARG(p, status).i32; /* netbsd32_intp */
iarg[3] = SCARG(p, options); /* int */
uarg[4] = (intptr_t) SCARG(p, wru).i32; /* netbsd32_wrusagep_t */
uarg[5] = (intptr_t) SCARG(p, info).i32; /* netbsd32_siginfop_t */
*n_args = 6;
break;
}
/* netbsd32_clock_getcpuclockid2 */
case 482: {
struct netbsd32_clock_getcpuclockid2_args *p = params;
iarg[0] = SCARG(p, idtype); /* idtype_t */
iarg[1] = SCARG(p, id); /* id_t */
uarg[2] = (intptr_t) SCARG(p, clock_id).i32; /* netbsd32_clockidp_t */
*n_args = 3;
break;
}
default:
*n_args = 0;
break;
@ -9297,6 +9318,47 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* netbsd32_wait6 */
case 481:
switch(ndx) {
case 0:
p = "idtype_t";
break;
case 1:
p = "id_t";
break;
case 2:
p = "netbsd32_intp";
break;
case 3:
p = "int";
break;
case 4:
p = "netbsd32_wrusagep_t";
break;
case 5:
p = "netbsd32_siginfop_t";
break;
default:
break;
};
break;
/* netbsd32_clock_getcpuclockid2 */
case 482:
switch(ndx) {
case 0:
p = "idtype_t";
break;
case 1:
p = "id_t";
break;
case 2:
p = "netbsd32_clockidp_t";
break;
default:
break;
};
break;
default:
break;
};
@ -11254,6 +11316,16 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* netbsd32_wait6 */
case 481:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* netbsd32_clock_getcpuclockid2 */
case 482:
if (ndx == 0 || ndx == 1)
p = "int";
break;
default:
break;
};