This commit is contained in:
christos 2016-07-03 14:26:47 +00:00
parent 7cf7644fc7
commit 65120c51fa
8 changed files with 733 additions and 699 deletions

View File

@ -1,14 +1,14 @@
/* $NetBSD: init_sysent.c,v 1.311 2016/05/06 10:19:40 pooka Exp $ */
/* $NetBSD: init_sysent.c,v 1.312 2016/07/03 14:26:47 christos Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.284 2016/04/23 23:08:26 christos Exp
* created from NetBSD: syscalls.master,v 1.285 2016/07/03 14:24:59 christos Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.311 2016/05/06 10:19:40 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.312 2016/07/03 14:26:47 christos Exp $");
#include "opt_modular.h"
#include "opt_ntp.h"
@ -1682,8 +1682,9 @@ struct sysent sysent[] = {
.sy_call = (sy_call_t *)sys_sched_yield
}, /* 350 = sched_yield */
{
.sy_call = sys_nosys,
}, /* 351 = filler */
ns(struct sys__sched_protect_args),
.sy_call = (sy_call_t *)sys__sched_protect
}, /* 351 = _sched_protect */
{
.sy_call = sys_nosys,
}, /* 352 = filler */

View File

@ -1,14 +1,14 @@
/* $NetBSD: syscalls.c,v 1.301 2016/05/06 10:19:40 pooka Exp $ */
/* $NetBSD: syscalls.c,v 1.302 2016/07/03 14:26:47 christos Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.284 2016/04/23 23:08:26 christos Exp
* created from NetBSD: syscalls.master,v 1.285 2016/07/03 14:24:59 christos Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.301 2016/05/06 10:19:40 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.302 2016/07/03 14:26:47 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_modular.h"
@ -394,7 +394,7 @@ const char *const syscallnames[] = {
/* 348 */ "_sched_setaffinity",
/* 349 */ "_sched_getaffinity",
/* 350 */ "sched_yield",
/* 351 */ "#351 (unimplemented)",
/* 351 */ "_sched_protect",
/* 352 */ "#352 (unimplemented)",
/* 353 */ "#353 (unimplemented)",
/* 354 */ "fsync_range",
@ -931,7 +931,7 @@ const char *const altsyscallnames[] = {
/* 348 */ NULL, /* _sched_setaffinity */
/* 349 */ NULL, /* _sched_getaffinity */
/* 350 */ NULL, /* sched_yield */
/* 351 */ NULL, /* unimplemented */
/* 351 */ NULL, /* _sched_protect */
/* 352 */ NULL, /* unimplemented */
/* 353 */ NULL, /* unimplemented */
/* 354 */ NULL, /* fsync_range */

View File

@ -1,14 +1,14 @@
/* $NetBSD: syscalls_autoload.c,v 1.20 2016/05/06 10:19:40 pooka Exp $ */
/* $NetBSD: syscalls_autoload.c,v 1.21 2016/07/03 14:26:47 christos Exp $ */
/*
* System call autoload table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.284 2016/04/23 23:08:26 christos Exp
* created from NetBSD: syscalls.master,v 1.285 2016/07/03 14:24:59 christos Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.20 2016/05/06 10:19:40 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.21 2016/07/03 14:26:47 christos Exp $");
#include <sys/proc.h>
static struct sc_autoload netbsd_syscalls_autoload[] = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: systrace_args.c,v 1.20 2016/05/06 10:19:40 pooka Exp $ */
/* $NetBSD: systrace_args.c,v 1.21 2016/07/03 14:26:47 christos Exp $ */
/*
* System call argument to DTrace register array converstion.
@ -2519,6 +2519,13 @@ systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_
*n_args = 0;
break;
}
/* sys__sched_protect */
case 351: {
struct sys__sched_protect_args *p = params;
iarg[0] = SCARG(p, priority); /* int */
*n_args = 1;
break;
}
/* sys_fsync_range */
case 354: {
struct sys_fsync_range_args *p = params;
@ -7802,6 +7809,16 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
/* sys_sched_yield */
case 350:
break;
/* sys__sched_protect */
case 351:
switch(ndx) {
case 0:
p = "int";
break;
default:
break;
};
break;
/* sys_fsync_range */
case 354:
switch(ndx) {
@ -11373,6 +11390,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* sys_sched_yield */
case 350:
/* sys__sched_protect */
case 351:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* sys_fsync_range */
case 354:
if (ndx == 0 || ndx == 1)

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
/* $NetBSD: rump_syscalls.c,v 1.128 2016/05/06 10:19:40 pooka Exp $ */
/* $NetBSD: rump_syscalls.c,v 1.129 2016/07/03 14:26:48 christos Exp $ */
/*
* System call vector and marshalling for rump.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.284 2016/04/23 23:08:26 christos Exp
* created from NetBSD: syscalls.master,v 1.285 2016/07/03 14:24:59 christos Exp
*/
#ifdef RUMP_CLIENT
@ -15,7 +15,7 @@
#ifdef __NetBSD__
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.128 2016/05/06 10:19:40 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.129 2016/07/03 14:26:48 christos Exp $");
#include <sys/fstypes.h>
#include <sys/proc.h>
@ -7866,9 +7866,8 @@ struct sysent rump_sysent[] = {
.sy_call = (sy_call_t *)rumpns_enosys,
}, /* 350 = sched_yield */
{
.sy_flags = SYCALL_NOSYS,
.sy_call = (sy_call_t *)rumpns_enosys,
}, /* 351 = filler */
}, /* 351 = _sched_protect */
{
.sy_flags = SYCALL_NOSYS,
.sy_call = (sy_call_t *)rumpns_enosys,

View File

@ -1,10 +1,10 @@
/* $NetBSD: syscall.h,v 1.295 2016/05/06 10:19:40 pooka Exp $ */
/* $NetBSD: syscall.h,v 1.296 2016/07/03 14:26:47 christos Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.284 2016/04/23 23:08:26 christos Exp
* created from NetBSD: syscalls.master,v 1.285 2016/07/03 14:24:59 christos Exp
*/
#ifndef _SYS_SYSCALL_H_
@ -953,6 +953,9 @@
/* syscall: "sched_yield" ret: "int" args: */
#define SYS_sched_yield 350
/* syscall: "_sched_protect" ret: "int" args: "int" */
#define SYS__sched_protect 351
/* syscall: "fsync_range" ret: "int" args: "int" "int" "off_t" "off_t" */
#define SYS_fsync_range 354

View File

@ -1,10 +1,10 @@
/* $NetBSD: syscallargs.h,v 1.279 2016/05/06 10:19:40 pooka Exp $ */
/* $NetBSD: syscallargs.h,v 1.280 2016/07/03 14:26:47 christos Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.284 2016/04/23 23:08:26 christos Exp
* created from NetBSD: syscalls.master,v 1.285 2016/07/03 14:24:59 christos Exp
*/
#ifndef _SYS_SYSCALLARGS_H_
@ -2188,6 +2188,13 @@ struct sys__sched_getaffinity_args {
check_syscall_args(sys__sched_getaffinity)
#endif /* !RUMP_CLIENT */
#ifndef RUMP_CLIENT
struct sys__sched_protect_args {
syscallarg(int) priority;
};
check_syscall_args(sys__sched_protect)
#endif /* !RUMP_CLIENT */
struct sys_fsync_range_args {
syscallarg(int) fd;
syscallarg(int) flags;
@ -3778,6 +3785,8 @@ int sys__sched_getaffinity(struct lwp *, const struct sys__sched_getaffinity_arg
int sys_sched_yield(struct lwp *, const void *, register_t *);
int sys__sched_protect(struct lwp *, const struct sys__sched_protect_args *, register_t *);
int sys_fsync_range(struct lwp *, const struct sys_fsync_range_args *, register_t *);
int sys_uuidgen(struct lwp *, const struct sys_uuidgen_args *, register_t *);