Adapt to per-emulation syscall_autoload capability (the table of syscalls

that can be autoloaded is currently empty).
This commit is contained in:
pgoyette 2015-12-01 02:20:43 +00:00
parent 68bc3825b8
commit bc3c0dc251
2 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_netbsd.c,v 1.197 2015/07/30 09:55:57 maxv Exp $ */
/* $NetBSD: netbsd32_netbsd.c,v 1.198 2015/12/01 02:20:43 pgoyette Exp $ */
/*
* Copyright (c) 1998, 2001, 2008 Matthew R. Green
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.197 2015/07/30 09:55:57 maxv Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.198 2015/12/01 02:20:43 pgoyette Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@ -112,6 +112,10 @@ struct uvm_object *emul_netbsd32_object;
extern struct sysctlnode netbsd32_sysctl_root;
#ifdef MODULAR
#include <compat/netbsd32/netbsd32_syscalls_autoload.c>
#endif
struct emul emul_netbsd32 = {
.e_name = "netbsd32",
.e_path = "/emul/netbsd32",
@ -126,6 +130,9 @@ struct emul emul_netbsd32 = {
.e_syscallnames = netbsd32_syscallnames,
#else
.e_syscallnames = NULL,
#endif
#ifdef MODULAR
.e_sc_autoload = netbsd32_syscalls_autoload,
#endif
.e_sendsig = netbsd32_sendsig,
.e_trapsignal = trapsignal,

View File

@ -1,10 +1,11 @@
# $NetBSD: syscalls.conf,v 1.14 2015/03/07 16:41:53 christos Exp $
# $NetBSD: syscalls.conf,v 1.15 2015/12/01 02:20:43 pgoyette Exp $
sysnames="netbsd32_syscalls.c"
sysnumhdr="netbsd32_syscall.h"
syssw="netbsd32_sysent.c"
sysarghdr="netbsd32_syscallargs.h"
systrace="netbsd32_systrace_args.c"
sysautoload="netbsd32_syscalls_autoload.c"
compatopts="compat_43 compat_09 compat_10 compat_11 compat_12 compat_13 compat_14 compat_15 compat_16 compat_20 compat_30 compat_40 compat_50 compat_60 compat_70"
libcompatopts=""
@ -12,5 +13,6 @@ switchname="netbsd32_sysent"
namesname="netbsd32_syscallnames"
constprefix="NETBSD32_SYS_"
registertype="register32_t"
emulname="netbsd32"
nsysent=512