Module Name:    src
Committed By:   pgoyette
Date:           Tue Dec 29 10:22:06 UTC 2015

Modified Files:
        src/sys/rump/librump/rumpkern: emul.c

Log Message:
Now that the table of auto-loadable syscalls is per-emulation, make sure
that the rump-kernel has its own list.  Otherwise, missing syscalls won't
trigger a module auto-load.

This commit finishes the work to get tests/lib/librumphijack/t_tcpip
nfs_autoload test case working again after 16 months of failures!  (see
PR bin/49153).


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/emul.c
diff -u src/sys/rump/librump/rumpkern/emul.c:1.173 src/sys/rump/librump/rumpkern/emul.c:1.174
--- src/sys/rump/librump/rumpkern/emul.c:1.173	Tue Aug 25 14:47:26 2015
+++ src/sys/rump/librump/rumpkern/emul.c	Tue Dec 29 10:22:05 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: emul.c,v 1.173 2015/08/25 14:47:26 pooka Exp $	*/
+/*	$NetBSD: emul.c,v 1.174 2015/12/29 10:22:05 pgoyette Exp $	*/
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.173 2015/08/25 14:47:26 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.174 2015/12/29 10:22:05 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/null.h>
@@ -133,6 +133,11 @@ struct loadavg averunnable = {
 	FSCALE,
 };
 
+/*
+ * Include the autogenerated list of auto-loadable syscalls
+ */
+#include <kern/syscalls_autoload.c>
+
 struct emul emul_netbsd = {
 	.e_name = "netbsd-rump",
 	.e_sysent = rump_sysent,
@@ -143,6 +148,7 @@ struct emul emul_netbsd = {
 #ifdef __HAVE_SYSCALL_INTERN
 	.e_syscall_intern = syscall_intern,
 #endif
+	.e_sc_autoload = netbsd_syscalls_autoload,
 };
 
 u_int nprocs = 1;

Reply via email to