Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern Now that the table of auto-loadabl...



details:   https://anonhg.NetBSD.org/src/rev/e1861a01c40b
branches:  trunk
changeset: 812716:e1861a01c40b
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Dec 29 10:22:05 2015 +0000

description:
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).

diffstat:

 sys/rump/librump/rumpkern/emul.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r fe85481e3ed0 -r e1861a01c40b sys/rump/librump/rumpkern/emul.c
--- a/sys/rump/librump/rumpkern/emul.c  Tue Dec 29 07:17:19 2015 +0000
+++ b/sys/rump/librump/rumpkern/emul.c  Tue Dec 29 10:22:05 2015 +0000
@@ -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 @@
        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 @@
 #ifdef __HAVE_SYSCALL_INTERN
        .e_syscall_intern = syscall_intern,
 #endif
+       .e_sc_autoload = netbsd_syscalls_autoload,
 };
 
 u_int nprocs = 1;



Home | Main Index | Thread Index | Old Index