Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys Add a netbsd32_compat40 module, move the 4.0 m...



details:   https://anonhg.NetBSD.org/src/rev/52ea6bd08dc2
branches:  pgoyette-compat
changeset: 830673:52ea6bd08dc2
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Sep 12 01:05:20 2018 +0000

description:
Add a netbsd32_compat40 module, move the 4.0 mount stuff there.

diffstat:

 sys/compat/netbsd32/netbsd32_netbsd.c   |  26 ++------------------------
 sys/modules/Makefile                    |  12 +++++++-----
 sys/modules/compat_netbsd32_40/Makefile |  14 ++++++++++++++
 3 files changed, 23 insertions(+), 29 deletions(-)

diffs (98 lines):

diff -r bb81637213b7 -r 52ea6bd08dc2 sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c     Wed Sep 12 00:22:26 2018 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c     Wed Sep 12 01:05:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_netbsd.c,v 1.214.2.3 2018/09/06 06:55:46 pgoyette Exp $       */
+/*     $NetBSD: netbsd32_netbsd.c,v 1.214.2.4 2018/09/12 01:05:21 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.214.2.3 2018/09/06 06:55:46 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.214.2.4 2018/09/12 01:05:21 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ddb.h"
@@ -357,28 +357,6 @@
 }
 
 int
-netbsd32_mount(struct lwp *l, const struct netbsd32_mount_args *uap, register_t *retval)
-{
-#ifdef COMPAT_40
-       /* {
-               syscallarg(const netbsd32_charp) type;
-               syscallarg(const netbsd32_charp) path;
-               syscallarg(int) flags;
-               syscallarg(netbsd32_voidp) data;
-       } */
-       struct compat_40_sys_mount_args ua;
-
-       NETBSD32TOP_UAP(type, const char);
-       NETBSD32TOP_UAP(path, const char);
-       NETBSD32TO64_UAP(flags);
-       NETBSD32TOP_UAP(data, void);
-       return (compat_40_sys_mount(l, &ua, retval));
-#else
-       return ENOSYS;
-#endif
-}
-
-int
 netbsd32_unmount(struct lwp *l, const struct netbsd32_unmount_args *uap, register_t *retval)
 {
        /* {
diff -r bb81637213b7 -r 52ea6bd08dc2 sys/modules/Makefile
--- a/sys/modules/Makefile      Wed Sep 12 00:22:26 2018 +0000
+++ b/sys/modules/Makefile      Wed Sep 12 01:05:20 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.202.2.29 2018/09/11 07:01:10 pgoyette Exp $
+#      $NetBSD: Makefile,v 1.202.2.30 2018/09/12 01:05:20 pgoyette Exp $
 
 .include <bsd.own.mk>
 
@@ -269,8 +269,9 @@
 SUBDIR+=       compat_netbsd32
 SUBDIR+=       compat_netbsd32_09      compat_netbsd32_12
 SUBDIR+=       compat_netbsd32_13      compat_netbsd32_20
-SUBDIR+=       compat_netbsd32_30      compat_netbsd32_50
-SUBDIR+=       compat_netbsd32_60      compat_netbsd32_80
+SUBDIR+=       compat_netbsd32_30      compat_netbsd32_40
+SUBDIR+=       compat_netbsd32_50      compat_netbsd32_60
+SUBDIR+=       compat_netbsd32_80
 SUBDIR+=       compat_netbsd32_43
 SUBDIR+=       compat_netbsd32_mqueue
 SUBDIR+=       compat_netbsd32_nfssrv
@@ -283,8 +284,9 @@
 SUBDIR+=       compat_netbsd32
 SUBDIR+=       compat_netbsd32_09      compat_netbsd32_12
 SUBDIR+=       compat_netbsd32_13      compat_netbsd32_20
-SUBDIR+=       compat_netbsd32_30      compat_netbsd32_50
-SUBDIR+=       compat_netbsd32_60      compat_netbsd32_80
+SUBDIR+=       compat_netbsd32_30      compat_netbsd32_40
+SUBDIR+=       compat_netbsd32_50      compat_netbsd32_60
+SUBDIR+=       compat_netbsd32_80
 SUBDIR+=       compat_netbsd32_43
 SUBDIR+=       compat_netbsd32_mqueue
 SUBDIR+=       compat_netbsd32_nfssrv
diff -r bb81637213b7 -r 52ea6bd08dc2 sys/modules/compat_netbsd32_40/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/compat_netbsd32_40/Makefile   Wed Sep 12 01:05:20 2018 +0000
@@ -0,0 +1,14 @@
+#      $NetBSD: Makefile,v 1.1.2.1 2018/09/12 01:05:21 pgoyette Exp $
+
+.include "../Makefile.inc"
+
+.PATH: ${S}/compat/netbsd32
+
+KMOD=  compat_netbsd32_40
+
+CPPFLAGS+=     -DCOMPAT_NETBSD32
+CPPFLAGS+=     -DCOMPAT_40 -DCOMPAT_50 -DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80
+
+SRCS+= netbsd32_compat_40.c
+
+.include <bsd.kmodule.mk>



Home | Main Index | Thread Index | Old Index