Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 Adapt to per-emulation syscall_autoload ...



details:   https://anonhg.NetBSD.org/src/rev/1519259502f8
branches:  trunk
changeset: 812104:1519259502f8
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Dec 01 02:20:43 2015 +0000

description:
Adapt to per-emulation syscall_autoload capability (the table of syscalls
that can be autoloaded is currently empty).

diffstat:

 sys/compat/netbsd32/netbsd32_netbsd.c |  11 +++++++++--
 sys/compat/netbsd32/syscalls.conf     |   4 +++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diffs (62 lines):

diff -r e53791ee1abb -r 1519259502f8 sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c     Tue Dec 01 02:03:55 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c     Tue Dec 01 02:20:43 2015 +0000
@@ -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 @@
 
 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",
@@ -127,6 +131,9 @@
 #else
        .e_syscallnames =       NULL,
 #endif
+#ifdef MODULAR
+       .e_sc_autoload =        netbsd32_syscalls_autoload,
+#endif
        .e_sendsig =            netbsd32_sendsig,
        .e_trapsignal =         trapsignal,
        .e_tracesig =           NULL,
diff -r e53791ee1abb -r 1519259502f8 sys/compat/netbsd32/syscalls.conf
--- a/sys/compat/netbsd32/syscalls.conf Tue Dec 01 02:03:55 2015 +0000
+++ b/sys/compat/netbsd32/syscalls.conf Tue Dec 01 02:20:43 2015 +0000
@@ -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 @@
 namesname="netbsd32_syscallnames"
 constprefix="NETBSD32_SYS_"
 registertype="register32_t"
+emulname="netbsd32"
 
 nsysent=512



Home | Main Index | Thread Index | Old Index