Drop SYS_vadvise

The (o)vadvise syscall is dummy since the beginning of NetBSD.

It is an obsolete remnant from the old UNIX.

Sponsored by <The NetBSD Foundation>
This commit is contained in:
kamil 2017-12-19 19:40:03 +00:00
parent c7fbece140
commit 102875f88e
18 changed files with 53 additions and 146 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_netbsd.c,v 1.210 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: netbsd32_netbsd.c,v 1.211 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* Copyright (c) 1998, 2001, 2008 Matthew R. Green * Copyright (c) 1998, 2001, 2008 Matthew R. Green
@ -27,7 +27,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.210 2017/12/19 18:34:47 kamil Exp $"); __KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.211 2017/12/19 19:40:03 kamil Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_ddb.h" #include "opt_ddb.h"
@ -2006,17 +2006,6 @@ netbsd32___fhopen40(struct lwp *l, const struct netbsd32___fhopen40_args *uap, r
} }
/* virtual memory syscalls */ /* virtual memory syscalls */
int
netbsd32_ovadvise(struct lwp *l, const struct netbsd32_ovadvise_args *uap, register_t *retval)
{
/* {
syscallarg(int) anom;
} */
struct sys_ovadvise_args ua;
NETBSD32TO64_UAP(anom);
return (sys_ovadvise(l, &ua, retval));
}
void void
netbsd32_adjust_limits(struct proc *p) netbsd32_adjust_limits(struct proc *p)

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscall.h,v 1.132 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: netbsd32_syscall.h,v 1.133 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp * created from NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp
*/ */
#ifndef _NETBSD32_SYS_SYSCALL_H_ #ifndef _NETBSD32_SYS_SYSCALL_H_
@ -218,9 +218,7 @@
/* syscall: "compat_43_netbsd32_ommap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" "int" "int" "netbsd32_long" */ /* syscall: "compat_43_netbsd32_ommap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" "int" "int" "netbsd32_long" */
#define NETBSD32_SYS_compat_43_netbsd32_ommap 71 #define NETBSD32_SYS_compat_43_netbsd32_ommap 71
/* syscall: "vadvise" ret: "int" args: "int" */ /* 72 is obsolete vadvise */
#define NETBSD32_SYS_vadvise 72
/* syscall: "netbsd32_munmap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" */ /* syscall: "netbsd32_munmap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" */
#define NETBSD32_SYS_netbsd32_munmap 73 #define NETBSD32_SYS_netbsd32_munmap 73

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscallargs.h,v 1.132 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: netbsd32_syscallargs.h,v 1.133 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp * created from NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp
*/ */
#ifndef _NETBSD32_SYS_SYSCALLARGS_H_ #ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@ -385,11 +385,6 @@ struct compat_43_netbsd32_ommap_args {
}; };
check_syscall_args(compat_43_netbsd32_ommap) check_syscall_args(compat_43_netbsd32_ommap)
struct netbsd32_ovadvise_args {
syscallarg(int) anom;
};
check_syscall_args(netbsd32_ovadvise)
struct netbsd32_munmap_args { struct netbsd32_munmap_args {
syscallarg(netbsd32_voidp) addr; syscallarg(netbsd32_voidp) addr;
syscallarg(netbsd32_size_t) len; syscallarg(netbsd32_size_t) len;
@ -2731,8 +2726,6 @@ int sys_vfork(struct lwp *, const void *, register_t *);
int compat_43_netbsd32_ommap(struct lwp *, const struct compat_43_netbsd32_ommap_args *, register_t *); int compat_43_netbsd32_ommap(struct lwp *, const struct compat_43_netbsd32_ommap_args *, register_t *);
int netbsd32_ovadvise(struct lwp *, const struct netbsd32_ovadvise_args *, register_t *);
int netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *); int netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *);
int netbsd32_mprotect(struct lwp *, const struct netbsd32_mprotect_args *, register_t *); int netbsd32_mprotect(struct lwp *, const struct netbsd32_mprotect_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_syscalls.c,v 1.130 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: netbsd32_syscalls.c,v 1.131 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp * created from NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.130 2017/12/19 18:34:47 kamil Exp $"); __KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.131 2017/12/19 19:40:03 kamil Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
@ -100,7 +100,7 @@ const char *const netbsd32_syscallnames[] = {
/* 69 */ "#69 (obsolete sbrk)", /* 69 */ "#69 (obsolete sbrk)",
/* 70 */ "#70 (obsolete sstk)", /* 70 */ "#70 (obsolete sstk)",
/* 71 */ "compat_43_netbsd32_ommap", /* 71 */ "compat_43_netbsd32_ommap",
/* 72 */ "vadvise", /* 72 */ "#72 (obsolete vadvise)",
/* 73 */ "netbsd32_munmap", /* 73 */ "netbsd32_munmap",
/* 74 */ "netbsd32_mprotect", /* 74 */ "netbsd32_mprotect",
/* 75 */ "netbsd32_madvise", /* 75 */ "netbsd32_madvise",
@ -630,7 +630,7 @@ const char *const altnetbsd32_syscallnames[] = {
/* 69 */ NULL, /* obsolete sbrk */ /* 69 */ NULL, /* obsolete sbrk */
/* 70 */ NULL, /* obsolete sstk */ /* 70 */ NULL, /* obsolete sstk */
/* 71 */ NULL, /* compat_43_netbsd32_ommap */ /* 71 */ NULL, /* compat_43_netbsd32_ommap */
/* 72 */ "ovadvise", /* 72 */ NULL, /* obsolete vadvise */
/* 73 */ "munmap", /* 73 */ "munmap",
/* 74 */ "mprotect", /* 74 */ "mprotect",
/* 75 */ "madvise", /* 75 */ "madvise",

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.11 2017/05/10 06:19:49 riastradh Exp $ */ /* $NetBSD: netbsd32_syscalls_autoload.c,v 1.12 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call autoload table. * System call autoload table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.115 2016/10/19 09:44:01 skrll Exp * created from NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.11 2017/05/10 06:19:49 riastradh Exp $"); __KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.12 2017/12/19 19:40:03 kamil Exp $");
#include <sys/proc.h> #include <sys/proc.h>
static struct sc_autoload netbsd32_syscalls_autoload[] = { static struct sc_autoload netbsd32_syscalls_autoload[] = {

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_sysent.c,v 1.130 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: netbsd32_sysent.c,v 1.131 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp * created from NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.130 2017/12/19 18:34:47 kamil Exp $"); __KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.131 2017/12/19 19:40:03 kamil Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h" #include "opt_compat_netbsd.h"
@ -391,9 +391,8 @@ struct sysent netbsd32_sysent[] = {
.sy_call = (sy_call_t *)compat_43(netbsd32_ommap) .sy_call = (sy_call_t *)compat_43(netbsd32_ommap)
}, /* 71 = compat_43_netbsd32_ommap */ }, /* 71 = compat_43_netbsd32_ommap */
{ {
ns(struct netbsd32_ovadvise_args), .sy_call = sys_nosys,
.sy_call = (sy_call_t *)netbsd32_ovadvise }, /* 72 = filler */
}, /* 72 = vadvise */
{ {
ns(struct netbsd32_munmap_args), ns(struct netbsd32_munmap_args),
.sy_call = (sy_call_t *)netbsd32_munmap .sy_call = (sy_call_t *)netbsd32_munmap

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_systrace_args.c,v 1.22 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: netbsd32_systrace_args.c,v 1.23 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call argument to DTrace register array converstion. * System call argument to DTrace register array converstion.
@ -534,13 +534,6 @@ systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_
*n_args = 6; *n_args = 6;
break; break;
} }
/* netbsd32_ovadvise */
case 72: {
const struct netbsd32_ovadvise_args *p = params;
iarg[0] = SCARG(p, anom); /* int */
*n_args = 1;
break;
}
/* netbsd32_munmap */ /* netbsd32_munmap */
case 73: { case 73: {
const struct netbsd32_munmap_args *p = params; const struct netbsd32_munmap_args *p = params;
@ -4284,16 +4277,6 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break; break;
}; };
break; break;
/* netbsd32_ovadvise */
case 72:
switch(ndx) {
case 0:
p = "int";
break;
default:
break;
};
break;
/* netbsd32_munmap */ /* netbsd32_munmap */
case 73: case 73:
switch(ndx) { switch(ndx) {
@ -9635,11 +9618,6 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1) if (ndx == 0 || ndx == 1)
p = "int"; p = "int";
break; break;
/* netbsd32_ovadvise */
case 72:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* netbsd32_munmap */ /* netbsd32_munmap */
case 73: case 73:
if (ndx == 0 || ndx == 1) if (ndx == 0 || ndx == 1)

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp $ $NetBSD: syscalls.master,v 1.119 2017/12/19 19:40:03 kamil Exp $
; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp ; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@ -179,7 +179,7 @@
71 COMPAT_43 { int|netbsd32||ommap(netbsd32_voidp addr, \ 71 COMPAT_43 { int|netbsd32||ommap(netbsd32_voidp addr, \
netbsd32_size_t len, int prot, int flags, int fd, \ netbsd32_size_t len, int prot, int flags, int fd, \
netbsd32_long pos); } netbsd32_long pos); }
72 STD { int|netbsd32||ovadvise(int anom); } vadvise 72 OBSOL vadvise
73 STD { int|netbsd32||munmap(netbsd32_voidp addr, \ 73 STD { int|netbsd32||munmap(netbsd32_voidp addr, \
netbsd32_size_t len); } netbsd32_size_t len); }
74 STD { int|netbsd32||mprotect(netbsd32_voidp addr, \ 74 STD { int|netbsd32||mprotect(netbsd32_voidp addr, \

View File

@ -1,14 +1,14 @@
/* $NetBSD: init_sysent.c,v 1.317 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: init_sysent.c,v 1.318 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call switch table. * System call switch table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.288 2017/12/19 08:48:19 kamil Exp * created from NetBSD: syscalls.master,v 1.289 2017/12/19 18:34:47 kamil Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.317 2017/12/19 18:34:47 kamil Exp $"); __KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.318 2017/12/19 19:40:03 kamil Exp $");
#include "opt_modular.h" #include "opt_modular.h"
#include "opt_ntp.h" #include "opt_ntp.h"
@ -433,9 +433,8 @@ struct sysent sysent[] = {
.sy_call = (sy_call_t *)sys_nomodule .sy_call = (sy_call_t *)sys_nomodule
}, /* 71 = compat_43_ommap */ }, /* 71 = compat_43_ommap */
{ {
ns(struct sys_ovadvise_args), .sy_call = sys_nosys,
.sy_call = (sy_call_t *)sys_ovadvise }, /* 72 = filler */
}, /* 72 = vadvise */
{ {
ns(struct sys_munmap_args), ns(struct sys_munmap_args),
.sy_flags = SYCALL_ARG_PTR, .sy_flags = SYCALL_ARG_PTR,

View File

@ -1,14 +1,14 @@
/* $NetBSD: syscalls.c,v 1.308 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: syscalls.c,v 1.309 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call names. * System call names.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.288 2017/12/19 08:48:19 kamil Exp * created from NetBSD: syscalls.master,v 1.289 2017/12/19 18:34:47 kamil Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.308 2017/12/19 18:34:47 kamil Exp $"); __KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.309 2017/12/19 19:40:03 kamil Exp $");
#if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT)
#include "opt_modular.h" #include "opt_modular.h"
@ -99,7 +99,7 @@ const char *const syscallnames[] = {
/* 69 */ "#69 (obsolete sbrk)", /* 69 */ "#69 (obsolete sbrk)",
/* 70 */ "#70 (obsolete sstk)", /* 70 */ "#70 (obsolete sstk)",
/* 71 */ "compat_43_ommap", /* 71 */ "compat_43_ommap",
/* 72 */ "vadvise", /* 72 */ "#72 (obsolete vadvise)",
/* 73 */ "munmap", /* 73 */ "munmap",
/* 74 */ "mprotect", /* 74 */ "mprotect",
/* 75 */ "madvise", /* 75 */ "madvise",
@ -636,7 +636,7 @@ const char *const altsyscallnames[] = {
/* 69 */ NULL, /* obsolete sbrk */ /* 69 */ NULL, /* obsolete sbrk */
/* 70 */ NULL, /* obsolete sstk */ /* 70 */ NULL, /* obsolete sstk */
/* 71 */ NULL, /* compat_43_ommap */ /* 71 */ NULL, /* compat_43_ommap */
/* 72 */ "ovadvise", /* 72 */ NULL, /* obsolete vadvise */
/* 73 */ NULL, /* munmap */ /* 73 */ NULL, /* munmap */
/* 74 */ NULL, /* mprotect */ /* 74 */ NULL, /* mprotect */
/* 75 */ NULL, /* madvise */ /* 75 */ NULL, /* madvise */

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.289 2017/12/19 18:34:47 kamil Exp $ $NetBSD: syscalls.master,v 1.290 2017/12/19 19:40:03 kamil Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@ -180,7 +180,7 @@
71 COMPAT_43 MODULAR compat \ 71 COMPAT_43 MODULAR compat \
{ int|sys||mmap(void *addr, size_t len, int prot, \ { int|sys||mmap(void *addr, size_t len, int prot, \
int flags, int fd, long pos); } ommap int flags, int fd, long pos); } ommap
72 STD { int|sys||ovadvise(int anom); } vadvise 72 OBSOL vadvise
73 STD { int|sys||munmap(void *addr, size_t len); } 73 STD { int|sys||munmap(void *addr, size_t len); }
74 STD { int|sys||mprotect(void *addr, size_t len, \ 74 STD { int|sys||mprotect(void *addr, size_t len, \
int prot); } int prot); }

View File

@ -1,14 +1,14 @@
/* $NetBSD: syscalls_autoload.c,v 1.25 2017/12/08 01:20:53 christos Exp $ */ /* $NetBSD: syscalls_autoload.c,v 1.26 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call autoload table. * System call autoload table.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.287 2017/12/08 01:19:29 christos Exp * created from NetBSD: syscalls.master,v 1.289 2017/12/19 18:34:47 kamil Exp
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.25 2017/12/08 01:20:53 christos Exp $"); __KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.26 2017/12/19 19:40:03 kamil Exp $");
#include <sys/proc.h> #include <sys/proc.h>
static struct sc_autoload netbsd_syscalls_autoload[] = { static struct sc_autoload netbsd_syscalls_autoload[] = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: systrace_args.c,v 1.27 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: systrace_args.c,v 1.28 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call argument to DTrace register array converstion. * System call argument to DTrace register array converstion.
@ -534,13 +534,6 @@ systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_
*n_args = 6; *n_args = 6;
break; break;
} }
/* sys_ovadvise */
case 72: {
const struct sys_ovadvise_args *p = params;
iarg[0] = SCARG(p, anom); /* int */
*n_args = 1;
break;
}
/* sys_munmap */ /* sys_munmap */
case 73: { case 73: {
const struct sys_munmap_args *p = params; const struct sys_munmap_args *p = params;
@ -4498,16 +4491,6 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break; break;
}; };
break; break;
/* sys_ovadvise */
case 72:
switch(ndx) {
case 0:
p = "int";
break;
default:
break;
};
break;
/* sys_munmap */ /* sys_munmap */
case 73: case 73:
switch(ndx) { switch(ndx) {
@ -10202,11 +10185,6 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1) if (ndx == 0 || ndx == 1)
p = "int"; p = "int";
break; break;
/* sys_ovadvise */
case 72:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* sys_munmap */ /* sys_munmap */
case 73: case 73:
if (ndx == 0 || ndx == 1) if (ndx == 0 || ndx == 1)

View File

@ -1,10 +1,10 @@
/* $NetBSD: rump_syscalls.h,v 1.106 2017/12/08 01:20:53 christos Exp $ */ /* $NetBSD: rump_syscalls.h,v 1.107 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call protos in rump namespace. * System call protos in rump namespace.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.287 2017/12/08 01:19:29 christos Exp * created from NetBSD: syscalls.master,v 1.289 2017/12/19 18:34:47 kamil Exp
*/ */
#ifndef _RUMP_RUMP_SYSCALLS_H_ #ifndef _RUMP_RUMP_SYSCALLS_H_

View File

@ -1,10 +1,10 @@
/* $NetBSD: rump_syscalls.c,v 1.135 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: rump_syscalls.c,v 1.136 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call vector and marshalling for rump. * System call vector and marshalling for rump.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.288 2017/12/19 08:48:19 kamil Exp * created from NetBSD: syscalls.master,v 1.289 2017/12/19 18:34:47 kamil Exp
*/ */
#ifdef RUMP_CLIENT #ifdef RUMP_CLIENT
@ -15,7 +15,7 @@
#ifdef __NetBSD__ #ifdef __NetBSD__
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.135 2017/12/19 18:34:47 kamil Exp $"); __KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.136 2017/12/19 19:40:03 kamil Exp $");
#include <sys/fstypes.h> #include <sys/fstypes.h>
#include <sys/proc.h> #include <sys/proc.h>
@ -6789,8 +6789,9 @@ struct sysent rump_sysent[] = {
.sy_call = (sy_call_t *)rumpns_sys_nomodule, .sy_call = (sy_call_t *)rumpns_sys_nomodule,
}, /* 71 = ommap */ }, /* 71 = ommap */
{ {
.sy_flags = SYCALL_NOSYS,
.sy_call = (sy_call_t *)rumpns_enosys, .sy_call = (sy_call_t *)rumpns_enosys,
}, /* 72 = vadvise */ }, /* 72 = filler */
{ {
.sy_call = (sy_call_t *)rumpns_enosys, .sy_call = (sy_call_t *)rumpns_enosys,
}, /* 73 = munmap */ }, /* 73 = munmap */

View File

@ -1,10 +1,10 @@
/* $NetBSD: syscall.h,v 1.302 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: syscall.h,v 1.303 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call numbers. * System call numbers.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.288 2017/12/19 08:48:19 kamil Exp * created from NetBSD: syscalls.master,v 1.289 2017/12/19 18:34:47 kamil Exp
*/ */
#ifndef _SYS_SYSCALL_H_ #ifndef _SYS_SYSCALL_H_
@ -218,9 +218,7 @@
/* syscall: "compat_43_ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */ /* syscall: "compat_43_ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */
#define SYS_compat_43_ommap 71 #define SYS_compat_43_ommap 71
/* syscall: "vadvise" ret: "int" args: "int" */ /* 72 is obsolete vadvise */
#define SYS_vadvise 72
/* syscall: "munmap" ret: "int" args: "void *" "size_t" */ /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
#define SYS_munmap 73 #define SYS_munmap 73

View File

@ -1,10 +1,10 @@
/* $NetBSD: syscallargs.h,v 1.286 2017/12/19 18:34:47 kamil Exp $ */ /* $NetBSD: syscallargs.h,v 1.287 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* System call argument lists. * System call argument lists.
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.288 2017/12/19 08:48:19 kamil Exp * created from NetBSD: syscalls.master,v 1.289 2017/12/19 18:34:47 kamil Exp
*/ */
#ifndef _SYS_SYSCALLARGS_H_ #ifndef _SYS_SYSCALLARGS_H_
@ -439,13 +439,6 @@ struct compat_43_sys_mmap_args {
check_syscall_args(compat_43_sys_mmap) check_syscall_args(compat_43_sys_mmap)
#endif /* !RUMP_CLIENT */ #endif /* !RUMP_CLIENT */
#ifndef RUMP_CLIENT
struct sys_ovadvise_args {
syscallarg(int) anom;
};
check_syscall_args(sys_ovadvise)
#endif /* !RUMP_CLIENT */
#ifndef RUMP_CLIENT #ifndef RUMP_CLIENT
struct sys_munmap_args { struct sys_munmap_args {
syscallarg(void *) addr; syscallarg(void *) addr;
@ -3286,8 +3279,6 @@ int sys_vfork(struct lwp *, const void *, register_t *);
int compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *); int compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *);
int sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *);
int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *); int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
int sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *); int sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_unix.c,v 1.48 2017/05/06 21:34:52 joerg Exp $ */ /* $NetBSD: uvm_unix.c,v 1.49 2017/12/19 19:40:03 kamil Exp $ */
/* /*
* Copyright (c) 1997 Charles D. Cranor and Washington University. * Copyright (c) 1997 Charles D. Cranor and Washington University.
@ -45,7 +45,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uvm_unix.c,v 1.48 2017/05/06 21:34:52 joerg Exp $"); __KERNEL_RCSID(0, "$NetBSD: uvm_unix.c,v 1.49 2017/12/19 19:40:03 kamil Exp $");
#include "opt_pax.h" #include "opt_pax.h"
@ -169,20 +169,3 @@ uvm_grow(struct proc *p, vaddr_t sp)
vm->vm_ssize = nss; vm->vm_ssize = nss;
return (1); return (1);
} }
/*
* sys_oadvise: old advice system call
*/
/* ARGSUSED */
int
sys_ovadvise(struct lwp *l, const struct sys_ovadvise_args *uap, register_t *retval)
{
#if 0
/* {
syscallarg(int) anom;
} */
#endif
return (EINVAL);
}