Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Prepare cpu_exec_ecoff_probe() for mips w...



details:   https://anonhg.NetBSD.org/src/rev/d14ebc928a5e
branches:  trunk
changeset: 499708:d14ebc928a5e
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Nov 27 13:25:24 2000 +0000

description:
Prepare cpu_exec_ecoff_probe() for mips which just returns ENOEXEC,
as per discussion on tech-kern.

diffstat:

 sys/arch/mips/mips/cpu_exec.c |  20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r da9b510dd89b -r d14ebc928a5e sys/arch/mips/mips/cpu_exec.c
--- a/sys/arch/mips/mips/cpu_exec.c     Mon Nov 27 11:37:33 2000 +0000
+++ b/sys/arch/mips/mips/cpu_exec.c     Mon Nov 27 13:25:24 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_exec.c,v 1.25 2000/11/21 00:37:51 jdolecek Exp $   */
+/*     $NetBSD: cpu_exec.c,v 1.26 2000/11/27 13:25:24 tsutsui Exp $    */
 
 /*
  * Copyright (c) 1992, 1993
@@ -133,7 +133,6 @@
 #endif
 }
 
-#ifdef COMPAT_ULTRIX
 void
 cpu_exec_ecoff_setregs(p, epp, stack)
        struct proc *p;
@@ -146,7 +145,22 @@
        setregs(p, epp, stack);
        f->f_regs[GP] = (register_t)execp->a.gp_value;
 }
-#endif
+
+/*
+ * cpu_exec_ecoff_probe()
+ *     cpu-dependent ECOFF format hook for execve().
+ *
+ * Do any machine-dependent diddling of the exec package when doing ECOFF.
+ */
+int
+cpu_exec_ecoff_probe(p, epp)
+       struct proc *p;
+       struct exec_package *epp;
+{
+
+       /* NetBSD/mips does not have native ECOFF binaries. */
+       return ENOEXEC;
+}
 
 /*
  * mips_elf_makecmds (p, epp)



Home | Main Index | Thread Index | Old Index