summaryrefslogtreecommitdiff
path: root/sys/lkm/exec
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2008-11-12 12:35:50 +0000
committerad <ad@NetBSD.org>2008-11-12 12:35:50 +0000
commit0efea177e37295fed654875d875160c47500d6bd (patch)
tree9d0589344a5d07b9a511a2e81ebbd701744d03b5 /sys/lkm/exec
parent0f81d3e0a26c2833cd085c472a4a77c325486b75 (diff)
Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
Diffstat (limited to 'sys/lkm/exec')
-rw-r--r--sys/lkm/exec/Makefile42
-rw-r--r--sys/lkm/exec/Makefile.inc5
-rw-r--r--sys/lkm/exec/aout/Makefile14
-rw-r--r--sys/lkm/exec/aout/lkminit_exec.c78
-rw-r--r--sys/lkm/exec/elf/Makefile14
-rw-r--r--sys/lkm/exec/elf/lkminit_exec.c81
-rw-r--r--sys/lkm/exec/freebsd_aout/Makefile16
-rw-r--r--sys/lkm/exec/freebsd_aout/lkminit_exec.c81
-rw-r--r--sys/lkm/exec/freebsd_elf/Makefile14
-rw-r--r--sys/lkm/exec/freebsd_elf/lkminit_exec.c83
-rw-r--r--sys/lkm/exec/ibcs2_coff/Makefile14
-rw-r--r--sys/lkm/exec/ibcs2_coff/lkminit_exec.c80
-rw-r--r--sys/lkm/exec/ibcs2_elf/Makefile14
-rw-r--r--sys/lkm/exec/ibcs2_elf/lkminit_exec.c82
-rw-r--r--sys/lkm/exec/ibcs2_xout/Makefile14
-rw-r--r--sys/lkm/exec/ibcs2_xout/lkminit_exec.c79
-rw-r--r--sys/lkm/exec/linux_aout/Makefile19
-rw-r--r--sys/lkm/exec/linux_aout/lkminit_exec.c80
-rw-r--r--sys/lkm/exec/linux_elf/Makefile27
-rw-r--r--sys/lkm/exec/linux_elf/lkminit_exec.c81
-rw-r--r--sys/lkm/exec/m68k4k/Makefile14
-rw-r--r--sys/lkm/exec/m68k4k/lkminit_exec.c78
-rw-r--r--sys/lkm/exec/netbsd32_aout/Makefile14
-rw-r--r--sys/lkm/exec/netbsd32_aout/lkminit_exec.c79
-rw-r--r--sys/lkm/exec/netbsd32_elf/Makefile14
-rw-r--r--sys/lkm/exec/netbsd32_elf/lkminit_exec.c82
-rw-r--r--sys/lkm/exec/osf1_ecoff/Makefile14
-rw-r--r--sys/lkm/exec/osf1_ecoff/lkminit_exec.c81
-rw-r--r--sys/lkm/exec/pecoff/Makefile14
-rw-r--r--sys/lkm/exec/pecoff/lkminit_exec.c79
-rw-r--r--sys/lkm/exec/sunos32_aout/Makefile14
-rw-r--r--sys/lkm/exec/sunos32_aout/lkminit_exec.c79
-rw-r--r--sys/lkm/exec/sunos_aout/Makefile14
-rw-r--r--sys/lkm/exec/sunos_aout/lkminit_exec.c78
-rw-r--r--sys/lkm/exec/svr4_32_elf/Makefile14
-rw-r--r--sys/lkm/exec/svr4_32_elf/lkminit_exec.c83
-rw-r--r--sys/lkm/exec/svr4_elf/Makefile21
-rw-r--r--sys/lkm/exec/svr4_elf/lkminit_exec.c97
-rw-r--r--sys/lkm/exec/ultrix_ecoff/Makefile16
-rw-r--r--sys/lkm/exec/ultrix_ecoff/lkminit_exec.c79
-rw-r--r--sys/lkm/exec/vax1k/Makefile14
-rw-r--r--sys/lkm/exec/vax1k/lkminit_exec.c78
42 files changed, 0 insertions, 1974 deletions
diff --git a/sys/lkm/exec/Makefile b/sys/lkm/exec/Makefile
deleted file mode 100644
index 9d3927f7ea4..00000000000
--- a/sys/lkm/exec/Makefile
+++ /dev/null
@@ -1,42 +0,0 @@
-# $NetBSD: Makefile,v 1.16 2008/01/05 10:24:11 he Exp $
-
-.if ${MACHINE} == "amd64"
-SUBDIR+= linux_elf
-.endif
-
-.if ${MACHINE} == "i386"
-SUBDIR+= freebsd_aout freebsd_elf linux_elf svr4_elf pecoff
-.endif
-
-.if ${MACHINE_ARCH} == "sparc64"
-SUBDIR+= elf netbsd32_aout netbsd32_elf sunos32_aout svr4_32_elf
-.endif
-
-# These are untested, but do compile. Once they are tested,
-# move them above.
-
-.if !make(install)
-
-.if ${MACHINE} == "alpha"
-SUBDIR+= linux_aout linux_elf osf1_ecoff
-.endif
-
-.if ${MACHINE} == "i386"
-SUBDIR+= aout ibcs2_coff ibcs2_elf ibcs2_xout linux_aout
-.endif
-
-.if ${MACHINE_ARCH} == "m68k"
-SUBDIR+= linux_aout linux_elf sunos_aout m68k4k
-.endif
-
-.if ${MACHINE_ARCH} == "sparc"
-SUBDIR+= aout sunos_aout svr4_elf
-.endif
-
-.if ${MACHINE_ARCH} == "vax"
-SUBDIR+= vax1k
-.endif
-
-.endif # !make(install)
-
-.include <bsd.kinc.mk>
diff --git a/sys/lkm/exec/Makefile.inc b/sys/lkm/exec/Makefile.inc
deleted file mode 100644
index d34058f10e3..00000000000
--- a/sys/lkm/exec/Makefile.inc
+++ /dev/null
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile.inc,v 1.3 2001/12/12 12:06:46 lukem Exp $
-
-S!= cd ${.CURDIR}/../../..;pwd
-
-.include "../Makefile.inc"
diff --git a/sys/lkm/exec/aout/Makefile b/sys/lkm/exec/aout/Makefile
deleted file mode 100644
index 81222efdb15..00000000000
--- a/sys/lkm/exec/aout/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2002/05/30 18:53:14 thorpej Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/kern
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_AOUT
-
-KMOD= exec_a.out
-
-SRCS= lkminit_exec.c
-SRCS+= exec_aout.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/aout/lkminit_exec.c b/sys/lkm/exec/aout/lkminit_exec.c
deleted file mode 100644
index 33d32b9f38e..00000000000
--- a/sys/lkm/exec/aout/lkminit_exec.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.8 2008/04/28 20:24:06 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.8 2008/04/28 20:24:06 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-int exec_aout_lkmentry(struct lkm_table *, int, int);
-
-extern const struct emul emul_netbsd; /* XXX */
-
-static struct execsw exec_aout =
- /* Native a.out */
- { sizeof(struct exec),
- exec_aout_makecmds,
- { NULL },
- &emul_netbsd,
- EXECSW_PRIO_ANY,
- 0,
- copyargs,
- setregs,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_aout", -1, &exec_aout, "aout");
-
-/*
- * entry point
- */
-int
-exec_aout_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/elf/Makefile b/sys/lkm/exec/elf/Makefile
deleted file mode 100644
index e5af0c6715f..00000000000
--- a/sys/lkm/exec/elf/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.5 2002/05/30 18:53:15 thorpej Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/kern
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ELF32 -DELFSIZE=32
-
-KMOD= exec_elf
-
-SRCS= lkminit_exec.c
-SRCS+= exec_elf32.c core_elf32.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/elf/lkminit_exec.c b/sys/lkm/exec/elf/lkminit_exec.c
deleted file mode 100644
index 37bf0ca99ed..00000000000
--- a/sys/lkm/exec/elf/lkminit_exec.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.10 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.10 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/exec_elf.h>
-#include <sys/signalvar.h>
-
-int exec_elf_lkmentry(struct lkm_table *, int, int);
-
-extern const struct emul emul_netbsd; /* XXX */
-extern int netbsd_elf32_probe(struct lwp *, struct exec_package *, void *,
- char *, vaddr_t *);
-
-static struct execsw exec_elf =
- /* Native Elf32 */
- { sizeof (Elf32_Ehdr),
- exec_elf32_makecmds,
- { netbsd_elf32_probe },
- &emul_netbsd,
- EXECSW_PRIO_ANY,
- howmany(ELF_AUX_ENTRIES * sizeof(Aux32Info), sizeof (Elf32_Addr)),
- elf32_copyargs,
- NULL,
- coredump_elf32,
- exec_setup_stack }; /* XXX XXX XXX */
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_elf", -1, &exec_elf, "elf");
-
-/*
- * entry point
- */
-int
-exec_elf_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/freebsd_aout/Makefile b/sys/lkm/exec/freebsd_aout/Makefile
deleted file mode 100644
index 5517db35f75..00000000000
--- a/sys/lkm/exec/freebsd_aout/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-# $NetBSD: Makefile,v 1.5 2002/05/30 18:53:16 thorpej Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/freebsd
-.PATH: $S/compat/common
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_AOUT
-
-KMOD= exec_freebsd_aout
-
-SRCS= lkminit_exec.c
-SRCS+= freebsd_exec_aout.c
-SRCS+= compat_exec.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/freebsd_aout/lkminit_exec.c b/sys/lkm/exec/freebsd_aout/lkminit_exec.c
deleted file mode 100644
index 74867d3fc0b..00000000000
--- a/sys/lkm/exec/freebsd_aout/lkminit_exec.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/exec_aout.h>
-#include <sys/exec_elf.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <compat/freebsd/freebsd_exec.h>
-
-int exec_freebsd_aout_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_freebsd_aout =
- /* FreeBSD a.out (native word size) */
- { FREEBSD_AOUT_HDR_SIZE,
- exec_freebsd_aout_makecmds,
- { NULL },
- NULL,
- EXECSW_PRIO_ANY,
- 0,
- copyargs,
- NULL,
- coredump_netbsd,
- exec_setup_stack };
-
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_freebsd_aout", -1, &exec_freebsd_aout, "freebsd");
-
-/*
- * entry point
- */
-int
-exec_freebsd_aout_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/freebsd_elf/Makefile b/sys/lkm/exec/freebsd_elf/Makefile
deleted file mode 100644
index 9fe88cdbaa3..00000000000
--- a/sys/lkm/exec/freebsd_elf/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.7 2007/05/12 10:45:01 dsl Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/freebsd
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ELF32
-
-KMOD= exec_freebsd_elf
-
-SRCS= lkminit_exec.c
-SRCS+= freebsd_exec_elf32.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/freebsd_elf/lkminit_exec.c b/sys/lkm/exec/freebsd_elf/lkminit_exec.c
deleted file mode 100644
index 024a20ca43a..00000000000
--- a/sys/lkm/exec/freebsd_elf/lkminit_exec.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.13 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.13 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <machine/elf_machdep.h>
-#define ELFSIZE 32
-#include <sys/exec_elf.h>
-
-#include <compat/freebsd/freebsd_exec.h>
-
-int exec_freebsd_elf_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_freebsd_elf =
- /* FreBSD Elf32 (probe not 64-bit safe) */
- { sizeof (Elf32_Ehdr),
- exec_elf32_makecmds,
- { ELFNAME2(freebsd,probe) },
- NULL,
- EXECSW_PRIO_ANY,
- howmany(ELF_AUX_ENTRIES * sizeof(Aux32Info), sizeof(Elf32_Addr)),
- elf32_copyargs,
- NULL,
- coredump_elf32,
- exec_setup_stack };
-
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_freebsd_elf", -1, &exec_freebsd_elf, "freebsd");
-
-/*
- * entry point
- */
-int
-exec_freebsd_elf_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/ibcs2_coff/Makefile b/sys/lkm/exec/ibcs2_coff/Makefile
deleted file mode 100644
index 94f594c7cac..00000000000
--- a/sys/lkm/exec/ibcs2_coff/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.6 2005/12/11 12:24:48 christos Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/ibcs2
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_COFF
-
-KMOD= exec_ibcs2_coff
-
-SRCS= lkminit_exec.c
-SRCS+= ibcs2_exec_coff.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/ibcs2_coff/lkminit_exec.c b/sys/lkm/exec/ibcs2_coff/lkminit_exec.c
deleted file mode 100644
index 0d8c825e0c7..00000000000
--- a/sys/lkm/exec/ibcs2_coff/lkminit_exec.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/exec_coff.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <compat/ibcs2/ibcs2_exec.h>
-#include <machine/ibcs2_machdep.h>
-
-int exec_ibcs2_coff_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_ibcs2_coff =
- /* iBCS2 COFF (native word size) */
- { COFF_HDR_SIZE,
- exec_ibcs2_coff_makecmds,
- { NULL },
- NULL,
- EXECSW_PRIO_ANY,
- 0,
- copyargs,
- NULL,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_ibcs2_coff", -1, &exec_ibcs2_coff, "ibcs2");
-
-/*
- * entry point
- */
-int
-exec_ibcs2_coff_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/ibcs2_elf/Makefile b/sys/lkm/exec/ibcs2_elf/Makefile
deleted file mode 100644
index e1d19857a21..00000000000
--- a/sys/lkm/exec/ibcs2_elf/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2002/05/30 18:53:18 thorpej Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/ibcs2
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ELF32
-
-KMOD= exec_ibcs2_elf
-
-SRCS= lkminit_exec.c
-SRCS+= ibcs2_exec_elf32.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/ibcs2_elf/lkminit_exec.c b/sys/lkm/exec/ibcs2_elf/lkminit_exec.c
deleted file mode 100644
index 06eeced4feb..00000000000
--- a/sys/lkm/exec/ibcs2_elf/lkminit_exec.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.12 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.12 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <machine/elf_machdep.h>
-#define ELFSIZE 32
-#include <sys/exec_elf.h>
-
-#include <compat/ibcs2/ibcs2_exec.h>
-
-int exec_ibcs2_elf_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_ibcs2_elf =
- /* SCO Elf32 */
- { sizeof (Elf32_Ehdr),
- exec_elf32_makecmds,
- { ELFNAME2(ibcs2,probe) },
- &emul_ibcs2,
- EXECSW_PRIO_ANY,
- howmany(ELF_AUX_ENTRIES * sizeof(Aux32Info), sizeof (Elf32_Addr)),
- elf32_copyargs,
- NULL,
- coredump_elf32,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_ibcs2_elf", -1, &exec_ibcs2_elf, "ibcs2");
-
-/*
- * entry point
- */
-int
-exec_ibcs2_elf_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/ibcs2_xout/Makefile b/sys/lkm/exec/ibcs2_xout/Makefile
deleted file mode 100644
index 6bb87d66f4d..00000000000
--- a/sys/lkm/exec/ibcs2_xout/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2002/05/30 18:53:18 thorpej Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/ibcs2
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ELF32 -DEXEC_ELF64
-
-KMOD= exec_ibcs2_xout
-
-SRCS= lkminit_exec.c
-SRCS+= ibcs2_exec_xout.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/ibcs2_xout/lkminit_exec.c b/sys/lkm/exec/ibcs2_xout/lkminit_exec.c
deleted file mode 100644
index 515dee6f5a2..00000000000
--- a/sys/lkm/exec/ibcs2_xout/lkminit_exec.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <compat/ibcs2/ibcs2_exec.h>
-#include <machine/ibcs2_machdep.h>
-
-int exec_ibcs2_xout_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_ibcs2_xout =
- /* iBCS2 x.out (native word size) */
- { XOUT_HDR_SIZE,
- exec_ibcs2_xout_makecmds,
- { NULL },
- NULL,
- EXECSW_PRIO_ANY,
- 0,
- copyargs,
- NULL,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_ibcs2_xout", -1, &exec_ibcs2_xout, "ibcs2");
-
-/*
- * entry point
- */
-int
-exec_ibcs2_xout_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/linux_aout/Makefile b/sys/lkm/exec/linux_aout/Makefile
deleted file mode 100644
index 05ca634cafb..00000000000
--- a/sys/lkm/exec/linux_aout/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-# $NetBSD: Makefile,v 1.8 2005/12/11 12:24:48 christos Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/linux/common
-.PATH: $S/compat/linux/arch/${MACHINE_ARCH}
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_AOUT -DCOMPAT_LINUX
-
-KMOD= exec_linux_aout
-
-SRCS= lkminit_exec.c
-SRCS+= linux_exec_aout.c
-
-.if ${MACHINE} == "i386"
-SRCS+= linux_exec_machdep.c
-.endif
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/linux_aout/lkminit_exec.c b/sys/lkm/exec/linux_aout/lkminit_exec.c
deleted file mode 100644
index 54bcee4423e..00000000000
--- a/sys/lkm/exec/linux_aout/lkminit_exec.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/exec_aout.h>
-#include <sys/exec_elf.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <compat/linux/common/linux_exec.h>
-
-int exec_linux_aout_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_linux_aout =
- /* Linux a.out (native word size) */
- { LINUX_AOUT_HDR_SIZE,
- exec_linux_aout_makecmds,
- { NULL },
- NULL,
- EXECSW_PRIO_ANY,
- LINUX_AOUT_AUX_ARGSIZ,
- linux_aout_copyargs,
- NULL,
- coredump_netbsd,
- linux_exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_linux_aout", -1, &exec_linux_aout, "linux");
-
-/*
- * entry point
- */
-int
-exec_linux_aout_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/linux_elf/Makefile b/sys/lkm/exec/linux_elf/Makefile
deleted file mode 100644
index 4f5a2fc1dc5..00000000000
--- a/sys/lkm/exec/linux_elf/Makefile
+++ /dev/null
@@ -1,27 +0,0 @@
-# $NetBSD: Makefile,v 1.10 2007/10/19 18:52:13 njoly Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/linux/common
-.PATH: $S/compat/linux/arch/${MACHINE}
-.PATH: $S/compat/linux/arch/${MACHINE_ARCH}
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ELF32 -DEXEC_ELF64
-
-KMOD= exec_linux_elf
-
-SRCS= lkminit_exec.c
-
-.if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
-SRCS+= linux_exec_machdep.c
-.endif
-
-.if ${MACHINE} == "alpha" || ${MACHINE} == "amd64" || ${MACHINE} == "sparc64"
-CPPFLAGS+= -DELFSIZE=64
-SRCS+= linux_exec_elf64.c
-.else
-CPPFLAGS+= -DELFSIZE=32
-SRCS+= linux_exec_elf32.c
-.endif
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/linux_elf/lkminit_exec.c b/sys/lkm/exec/linux_elf/lkminit_exec.c
deleted file mode 100644
index 989b8eb92af..00000000000
--- a/sys/lkm/exec/linux_elf/lkminit_exec.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.13 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.13 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <machine/elf_machdep.h>
-#include <sys/exec_elf.h>
-
-#include <compat/linux/common/linux_exec.h>
-
-int exec_linux_elf_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_linux_elf =
- /* Linux Elf */
- { sizeof (Elf_Ehdr),
- ELFNAME2(exec,makecmds),
- { ELFNAME2(linux,probe) },
- NULL, /* will be set by exec_add() */
- EXECSW_PRIO_ANY,
- LINUX_ELF_AUX_ARGSIZ,
- ELFNAME2(linux,copyargs),
- NULL,
- ELFNAMEEND(coredump),
- linux_exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_linux_elf", -1, &exec_linux_elf, "linux");
-
-/*
- * entry point
- */
-int
-exec_linux_elf_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/m68k4k/Makefile b/sys/lkm/exec/m68k4k/Makefile
deleted file mode 100644
index f8917848f9a..00000000000
--- a/sys/lkm/exec/m68k4k/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2002/05/30 18:53:19 thorpej Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/m68k4k
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_AOUT
-
-KMOD= exec_m68k4k
-
-SRCS= lkminit_exec.c
-SRCS+= m68k4k_exec.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/m68k4k/lkminit_exec.c b/sys/lkm/exec/m68k4k/lkminit_exec.c
deleted file mode 100644
index e329b1f10ef..00000000000
--- a/sys/lkm/exec/m68k4k/lkminit_exec.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <compat/m68k4k/m68k4k_exec.h>
-
-int exec_m68k4k_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_m68k4k =
- /* NetBSD a.out for m68k4k */
- { sizeof(struct exec),
- exec_m68k4k_makecmds,
- { NULL },
- NULL,
- EXECSW_PRIO_ANY,
- 0,
- copyargs,
- NULL,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_m68k4k", -1, &exec_m68k4k, "netbsd");
-
-/*
- * entry point
- */
-int
-exec_m68k4k_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/netbsd32_aout/Makefile b/sys/lkm/exec/netbsd32_aout/Makefile
deleted file mode 100644
index 110f0c7dc79..00000000000
--- a/sys/lkm/exec/netbsd32_aout/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2002/05/30 18:53:20 thorpej Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/netbsd32
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_AOUT -DCOMPAT_NETBSD32
-
-KMOD= exec_netbsd32_aout
-
-SRCS= lkminit_exec.c
-SRCS+= netbsd32_exec_aout.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/netbsd32_aout/lkminit_exec.c b/sys/lkm/exec/netbsd32_aout/lkminit_exec.c
deleted file mode 100644
index 5a5c7f049b2..00000000000
--- a/sys/lkm/exec/netbsd32_aout/lkminit_exec.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <sys/exec_aout.h>
-#include <compat/netbsd32/netbsd32_exec.h>
-
-int exec_netbsd32_aout_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_netbsd32_aout =
- /* 32-bit NetBSD a.out on 64-bit */
- { sizeof(struct netbsd32_exec),
- exec_netbsd32_makecmds,
- { NULL },
- NULL,
- EXECSW_PRIO_FIRST,
- 0,
- netbsd32_copyargs,
- NULL,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_netbsd32_aout", -1, &exec_netbsd32_aout, "netbsd32");
-
-/*
- * entry point
- */
-int
-exec_netbsd32_aout_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/netbsd32_elf/Makefile b/sys/lkm/exec/netbsd32_elf/Makefile
deleted file mode 100644
index 660b07f82a9..00000000000
--- a/sys/lkm/exec/netbsd32_elf/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.6 2005/12/11 12:24:48 christos Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/netbsd32
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ELF32 -DCOMPAT_NETBSD32
-
-KMOD= exec_netbsd32_elf
-
-SRCS= lkminit_exec.c
-SRCS+= netbsd32_exec_elf32.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/netbsd32_elf/lkminit_exec.c b/sys/lkm/exec/netbsd32_elf/lkminit_exec.c
deleted file mode 100644
index 1237eaef5af..00000000000
--- a/sys/lkm/exec/netbsd32_elf/lkminit_exec.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.11 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.11 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <machine/elf_machdep.h>
-#define ELFSIZE 32
-#include <sys/exec_elf.h>
-
-#include <compat/netbsd32/netbsd32_exec.h>
-
-int exec_netbsd32_elf_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_netbsd32_elf =
- /* Elf32 NetBSD on 64-bit */
- { sizeof (Elf32_Ehdr),
- exec_elf32_makecmds,
- { ELFNAME2(netbsd32,probe) },
- NULL,
- EXECSW_PRIO_FIRST,
- howmany(ELF_AUX_ENTRIES * sizeof(Aux32Info), sizeof (Elf32_Addr)),
- netbsd32_elf32_copyargs,
- NULL,
- coredump_elf32,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_netbsd32_elf", -1, &exec_netbsd32_elf, "netbsd32");
-
-/*
- * entry point
- */
-int
-exec_netbsd32_elf_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/osf1_ecoff/Makefile b/sys/lkm/exec/osf1_ecoff/Makefile
deleted file mode 100644
index 272ce74e804..00000000000
--- a/sys/lkm/exec/osf1_ecoff/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2002/05/30 18:53:21 thorpej Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/osf1
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ECOFF
-
-KMOD= exec_osf1_ecoff
-
-SRCS= lkminit_exec.c
-SRCS+= osf1_exec_ecoff.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/osf1_ecoff/lkminit_exec.c b/sys/lkm/exec/osf1_ecoff/lkminit_exec.c
deleted file mode 100644
index 23d6bc587af..00000000000
--- a/sys/lkm/exec/osf1_ecoff/lkminit_exec.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.10 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.10 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/exec_ecoff.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <compat/osf1/osf1.h>
-#include <compat/osf1/osf1_exec.h>
-
-int exec_osf1_ecoff_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_osf1_ecoff =
- /* OSF/1 (Digital Unix) ECOFF */
- { ECOFF_HDR_SIZE,
- exec_ecoff_makecmds,
- { .ecoff_probe_func = osf1_exec_ecoff_probe },
- NULL,
- EXECSW_PRIO_ANY,
- howmany(OSF1_MAX_AUX_ENTRIES * sizeof (struct osf1_auxv) +
- 2 * (MAXPATHLEN + 1), sizeof (char *)), /* exec & loader names */
- osf1_copyargs,
- cpu_exec_ecoff_setregs,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_osf1_ecoff", -1, &exec_osf1_ecoff, "osf1");
-
-/*
- * entry point
- */
-int
-exec_osf1_ecoff_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/pecoff/Makefile b/sys/lkm/exec/pecoff/Makefile
deleted file mode 100644
index f392818ed34..00000000000
--- a/sys/lkm/exec/pecoff/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.6 2008/03/10 01:22:05 dholland Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/pecoff
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DCOMPAT_PECOFF
-
-KMOD= exec_pecoff
-
-SRCS= lkminit_exec.c
-SRCS+= pecoff_exec.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/pecoff/lkminit_exec.c b/sys/lkm/exec/pecoff/lkminit_exec.c
deleted file mode 100644
index 44722fcedf8..00000000000
--- a/sys/lkm/exec/pecoff/lkminit_exec.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.8 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.8 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <sys/exec_coff.h>
-#include <compat/pecoff/pecoff_exec.h>
-
-int exec_pecoff_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_pecoff =
- /* Win32/WinCE PE/COFF (native word size) */
- { PECOFF_HDR_SIZE,
- exec_pecoff_makecmds,
- { NULL },
- NULL, /* will be set by exec_add() */
- EXECSW_PRIO_ANY,
- howmany(sizeof(struct pecoff_args), sizeof(char *)),
- pecoff_copyargs,
- NULL,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_pecoff", -1, &exec_pecoff, "pecoff");
-
-/*
- * entry point
- */
-int
-exec_pecoff_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/sunos32_aout/Makefile b/sys/lkm/exec/sunos32_aout/Makefile
deleted file mode 100644
index ffd5e28bae7..00000000000
--- a/sys/lkm/exec/sunos32_aout/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.6 2005/12/11 12:24:48 christos Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/sunos32
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_AOUT -DCOMPAT_NETBSD32
-
-KMOD= exec_sunos32_aout
-
-SRCS= lkminit_exec.c
-SRCS+= sunos32_exec_aout.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/sunos32_aout/lkminit_exec.c b/sys/lkm/exec/sunos32_aout/lkminit_exec.c
deleted file mode 100644
index e945571c916..00000000000
--- a/sys/lkm/exec/sunos32_aout/lkminit_exec.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <compat/netbsd32/netbsd32_exec.h>
-#include <compat/sunos32/sunos32_exec.h>
-
-int exec_sunos32_aout_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_sunos32_aout =
- /* 32-bit SunOS a.out on 64-bit */
- { SUNOS32_AOUT_HDR_SIZE,
- exec_sunos32_aout_makecmds,
- { NULL },
- NULL,
- EXECSW_PRIO_ANY,
- 0,
- netbsd32_copyargs,
- NULL,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_sunos32_aout", -1, &exec_sunos32_aout, "sunos32");
-
-/*
- * entry point
- */
-int
-exec_sunos32_aout_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/sunos_aout/Makefile b/sys/lkm/exec/sunos_aout/Makefile
deleted file mode 100644
index e463d020e05..00000000000
--- a/sys/lkm/exec/sunos_aout/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2002/05/30 18:53:23 thorpej Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/sunos
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_AOUT
-
-KMOD= exec_sunos_aout
-
-SRCS= lkminit_exec.c
-SRCS+= sunos_exec_aout.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/sunos_aout/lkminit_exec.c b/sys/lkm/exec/sunos_aout/lkminit_exec.c
deleted file mode 100644
index 3b496a81980..00000000000
--- a/sys/lkm/exec/sunos_aout/lkminit_exec.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <compat/sunos/sunos_exec.h>
-
-int exec_sunos_aout_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_sunos_aout =
- /* SunOS a.out (native word size) */
- { SUNOS_AOUT_HDR_SIZE,
- exec_sunos_aout_makecmds,
- { NULL },
- NULL,
- EXECSW_PRIO_ANY,
- 0,
- copyargs,
- NULL,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_sunos_aout", -1, &exec_sunos_aout, "sunos");
-
-/*
- * entry point
- */
-int
-exec_sunos_aout_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/svr4_32_elf/Makefile b/sys/lkm/exec/svr4_32_elf/Makefile
deleted file mode 100644
index ecabe3a92f8..00000000000
--- a/sys/lkm/exec/svr4_32_elf/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.6 2005/12/11 12:24:49 christos Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/svr4_32
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ELF32 -DCOMPAT_NETBSD32
-
-KMOD= exec_svr4_32_elf
-
-SRCS= lkminit_exec.c
-SRCS+= svr4_32_exec_elf32.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/svr4_32_elf/lkminit_exec.c b/sys/lkm/exec/svr4_32_elf/lkminit_exec.c
deleted file mode 100644
index 55c8a5de1b1..00000000000
--- a/sys/lkm/exec/svr4_32_elf/lkminit_exec.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.10 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.10 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <machine/elf_machdep.h>
-#define ELFSIZE 32
-#include <sys/exec_elf.h>
-
-#include <compat/svr4_32/svr4_32_types.h>
-#include <compat/svr4_32/svr4_32_exec.h>
-
-int exec_svr4_32_elf_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_svr4_32_elf =
- /* SVR4 Elf32 on 64-bit */
- { sizeof (Elf_Ehdr),
- exec_elf32_makecmds,
- { ELFNAME2(svr4_32,probe) },
- NULL,
- EXECSW_PRIO_ANY,
- SVR4_32_AUX_ARGSIZ,
- svr4_32_copyargs,
- NULL,
- coredump_elf32,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_svr4_32_elf", -1, &exec_svr4_32_elf, "svr4_32");
-
-/*
- * entry point
- */
-int
-exec_svr4_32_elf_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/svr4_elf/Makefile b/sys/lkm/exec/svr4_elf/Makefile
deleted file mode 100644
index fa468978842..00000000000
--- a/sys/lkm/exec/svr4_elf/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-# $NetBSD: Makefile,v 1.8 2007/05/12 10:45:01 dsl Exp $
-
-.include "../Makefile.inc"
-
-.if ${MACHINE} == sparc64 && ${MACHINE_ARCH} == sparc64
-ELFSIZE=64
-.else
-ELFSIZE=32
-.endif
-
-.PATH: $S/compat/svr4
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ELF${ELFSIZE} \
- -DELFSIZE=${ELFSIZE}
-
-KMOD= exec_svr4_elf
-
-SRCS= lkminit_exec.c
-SRCS+= svr4_exec_elf${ELFSIZE}.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/svr4_elf/lkminit_exec.c b/sys/lkm/exec/svr4_elf/lkminit_exec.c
deleted file mode 100644
index 0b1ab0cfc9a..00000000000
--- a/sys/lkm/exec/svr4_elf/lkminit_exec.c
+++ /dev/null
@@ -1,97 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.13 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.13 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <machine/elf_machdep.h>
-#ifndef ELFSIZE
-#define ELFSIZE 32
-#endif
-#include <sys/exec_elf.h>
-
-#include <compat/svr4/svr4_exec.h>
-
-int exec_svr4_elf_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_svr4_elf =
-#if ELFSIZE == 32
- /* SVR4 Elf32 */
- { sizeof (Elf_Ehdr),
- exec_elf32_makecmds,
- { ELFNAME2(svr4,probe) },
- NULL,
- EXECSW_PRIO_ANY,
- howmany(ELF_AUX_ENTRIES * sizeof(Aux32Info), sizeof (Elf32_Addr)),
- elf32_copyargs,
- NULL,
- coredump_elf32,
- exec_setup_stack };
-#else
- /* SVR4 Elf64 */
- { sizeof (Elf64_Ehdr),
- exec_elf64_makecmds,
- { ELFNAME2(svr4,probe) },
- NULL,
- EXECSW_PRIO_ANY,
- howmany(ELF_AUX_ENTRIES * sizeof(Aux64Info), sizeof (Elf64_Addr)),
- elf64_copyargs,
- NULL,
- coredump_elf64 };
-#endif
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_svr4_elf", -1, &exec_svr4_elf, "svr4");
-
-/*
- * entry point
- */
-int
-exec_svr4_elf_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/ultrix_ecoff/Makefile b/sys/lkm/exec/ultrix_ecoff/Makefile
deleted file mode 100644
index 9bbf3c217b1..00000000000
--- a/sys/lkm/exec/ultrix_ecoff/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-# $NetBSD: Makefile,v 1.9 2005/12/11 12:24:49 christos Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/ultrix
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_ECOFF
-
-KMOD= exec_ultrix_ecoff
-
-SRCS= lkminit_exec.c
-SRCS+= ultrix_exec_ecoff.c
-
-BUILDSYMLINKS+=${S}/arch/mips/include mips
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/ultrix_ecoff/lkminit_exec.c b/sys/lkm/exec/ultrix_ecoff/lkminit_exec.c
deleted file mode 100644
index a160f1232fb..00000000000
--- a/sys/lkm/exec/ultrix_ecoff/lkminit_exec.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/exec_ecoff.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <compat/ultrix/ultrix_exec.h>
-
-int exec_ultrix_ecoff_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_ultrix_ecoff =
- /* Ultrix ECOFF */
- { ECOFF_HDR_SIZE,
- exec_ecoff_makecmds,
- { .ecoff_probe_func = ultrix_exec_ecoff_probe },
- NULL,
- EXECSW_PRIO_LAST, /* XXX probe func alw. succeeds */
- 0,
- copyargs,
- cpu_exec_ecoff_setregs,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_ultrix_ecoff", -1, &exec_ultrix_ecoff, "ultrix");
-
-/*
- * entry point
- */
-int
-exec_ultrix_ecoff_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}
diff --git a/sys/lkm/exec/vax1k/Makefile b/sys/lkm/exec/vax1k/Makefile
deleted file mode 100644
index afbaf551070..00000000000
--- a/sys/lkm/exec/vax1k/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.5 2002/05/30 18:53:26 thorpej Exp $
-
-.include "../Makefile.inc"
-
-.PATH: $S/compat/vax1k
-
-CPPFLAGS+= -nostdinc -D_KERNEL -DEXEC_AOUT
-
-KMOD= exec_vax1k
-
-SRCS= lkminit_exec.c
-SRCS+= vax1k_exec.c
-
-.include <bsd.kmod.mk>
diff --git a/sys/lkm/exec/vax1k/lkminit_exec.c b/sys/lkm/exec/vax1k/lkminit_exec.c
deleted file mode 100644
index 61775cb4115..00000000000
--- a/sys/lkm/exec/vax1k/lkminit_exec.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* $NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Michael Graff <explorer@flame.org>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2008/04/28 20:24:07 martin Exp $");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/lkm.h>
-#include <sys/signalvar.h>
-
-#include <compat/vax1k/vax1k_exec.h>
-
-int exec_vax1k_lkmentry(struct lkm_table *, int, int);
-
-static struct execsw exec_vax1k =
- /* NetBSD vax1k a.out */
- { sizeof(struct exec),
- exec_vax1k_makecmds,
- { NULL },
- NULL,
- EXECSW_PRIO_ANY,
- 0,
- copyargs,
- NULL,
- coredump_netbsd,
- exec_setup_stack };
-
-/*
- * declare the exec
- */
-MOD_EXEC("exec_vax1k", -1, &exec_vax1k, "netbsd");
-
-/*
- * entry point
- */
-int
-exec_vax1k_lkmentry(lkmtp, cmd, ver)
- struct lkm_table *lkmtp;
- int cmd;
- int ver;
-{
- DISPATCH(lkmtp, cmd, ver,
- lkm_nofunc,
- lkm_nofunc,
- lkm_nofunc);
-}