Module Name: src
Committed By: andvar
Date: Sun Sep 17 10:14:49 UTC 2023
Modified Files:
src/sys/arch/luna68k/luna68k: machdep.c
Log Message:
all sunos_exec_aout_makecmds references were removed from machedep back in 1997,
as the code was standardized and moved to sunos_exec_aout.c.
removing this code from luna68k as well, for whatever reason it was missed.
Fixes build with COMPAT_SUNOS enabled for luna68k.
To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/arch/luna68k/luna68k/machdep.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/arch/luna68k/luna68k/machdep.c
diff -u src/sys/arch/luna68k/luna68k/machdep.c:1.108 src/sys/arch/luna68k/luna68k/machdep.c:1.109
--- src/sys/arch/luna68k/luna68k/machdep.c:1.108 Sat Oct 9 20:00:41 2021
+++ src/sys/arch/luna68k/luna68k/machdep.c Sun Sep 17 10:14:49 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.108 2021/10/09 20:00:41 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.109 2023/09/17 10:14:49 andvar Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.108 2021/10/09 20:00:41 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.109 2023/09/17 10:14:49 andvar Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -822,14 +822,7 @@ luna68k_abort(const char *cp)
int
cpu_exec_aout_makecmds(struct lwp *l, struct exec_package *epp)
{
- int error = ENOEXEC;
-#ifdef COMPAT_SUNOS
- extern sunos_exec_aout_makecmds(struct proc *, struct exec_package *);
-
- if ((error = sunos_exec_aout_makecmds(l->l_proc, epp)) == 0)
- return 0;
-#endif
- return error;
+ return ENOEXEC;
}
#ifdef MODULAR