Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 Provide a dummy cpu_exec_aout_makecmds(...



details:   https://anonhg.NetBSD.org/src/rev/f096ab2c1e30
branches:  trunk
changeset: 558651:f096ab2c1e30
user:      drochner <drochner%NetBSD.org@localhost>
date:      Fri Feb 20 18:11:16 2004 +0000

description:
Provide a dummy cpu_exec_aout_makecmds() to make a kernel
with COMPAT_NETBSD32+COMPAT_AOUT link.
netbsd-1.3/i386 binaries are running now.

diffstat:

 sys/arch/amd64/amd64/netbsd32_machdep.c |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r c85b6d3ac16f -r f096ab2c1e30 sys/arch/amd64/amd64/netbsd32_machdep.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep.c   Fri Feb 20 18:04:06 2004 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep.c   Fri Feb 20 18:11:16 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep.c,v 1.8 2004/02/11 01:01:37 matt Exp $        */
+/*     $NetBSD: netbsd32_machdep.c,v 1.9 2004/02/20 18:11:16 drochner Exp $    */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,9 +36,10 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.8 2004/02/11 01:01:37 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.9 2004/02/20 18:11:16 drochner Exp $");
 
 #include "opt_compat_netbsd.h"
+#include "opt_execfmt.h"
 #include "opt_user_ldt.h"
 
 #include <sys/param.h>
@@ -81,6 +82,19 @@
     struct trapframe *);
 static int check_mcontext32(const mcontext32_t *, struct trapframe *);
 
+#ifdef EXEC_AOUT
+/*
+ * There is no native a.out -- this function is required
+ * for i386 a.out emulation (COMPAT_NETBSD32+EXEC_AOUT).
+ */
+int
+cpu_exec_aout_makecmds(struct proc *p, struct exec_package *e)
+{
+
+       return ENOEXEC;
+}
+#endif
+
 void
 netbsd32_setregs(struct lwp *l, struct exec_package *pack, u_long stack)
 {



Home | Main Index | Thread Index | Old Index