Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys/compat/common The big all-inclusive compat mod...



details:   https://anonhg.NetBSD.org/src/rev/169cb02fbd83
branches:  pgoyette-compat
changeset: 321039:169cb02fbd83
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Mar 15 23:32:35 2018 +0000

description:
The big all-inclusive compat module still needs to initialize the
compat_70 stuff.

diffstat:

 sys/compat/common/compat_mod.c |  17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r 0748ed01e310 -r 169cb02fbd83 sys/compat/common/compat_mod.c
--- a/sys/compat/common/compat_mod.c    Thu Mar 15 23:23:35 2018 +0000
+++ b/sys/compat/common/compat_mod.c    Thu Mar 15 23:32:35 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_mod.c,v 1.24.14.9 2018/03/15 22:46:22 pgoyette Exp $    */
+/*     $NetBSD: compat_mod.c,v 1.24.14.10 2018/03/15 23:32:35 pgoyette Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.24.14.9 2018/03/15 22:46:22 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.24.14.10 2018/03/15 23:32:35 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -78,6 +78,11 @@
 void if_50_fini(void);
 #endif
 
+#ifdef COMPAT_70
+#include <compat/net/route.h>
+#include <compat/net/route_70.h>
+#endif
+
 static const char * const compat_includes[] = {
        "compat_70",
        NULL
@@ -282,9 +287,17 @@
                uvm_50_init();
                if_50_init();
 #endif
+#ifdef COMPAT_70
+               vec_ocreds_valid = true;
+               rtsock_70_init();
+#endif
                return 0;
 
        case MODULE_CMD_FINI:
+#ifdef COMPAT_70
+               rtsock_70_fini();
+               vec_ocreds_valid = false;
+#endif
 #ifdef COMPAT_10
                vfs_syscalls_10_fini();
 #endif



Home | Main Index | Thread Index | Old Index