Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha use osf1_exec_ecoff_hook()



details:   https://anonhg.NetBSD.org/src/rev/94adde789756
branches:  trunk
changeset: 472300:94adde789756
user:      cgd <cgd%NetBSD.org@localhost>
date:      Tue Apr 27 02:33:35 1999 +0000

description:
use osf1_exec_ecoff_hook()

diffstat:

 sys/arch/alpha/alpha/machdep.c |  17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diffs (51 lines):

diff -r e5631451d1fb -r 94adde789756 sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Tue Apr 27 02:32:33 1999 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Tue Apr 27 02:33:35 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.170 1999/04/25 02:56:26 simonb Exp $ */
+/* $NetBSD: machdep.c,v 1.171 1999/04/27 02:33:35 cgd Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.170 1999/04/25 02:56:26 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.171 1999/04/27 02:33:35 cgd Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2157,25 +2157,26 @@
 {
        struct ecoff_exechdr *execp = (struct ecoff_exechdr *)epp->ep_hdr;
        extern struct emul emul_netbsd;
-#ifdef COMPAT_OSF1
-       extern struct emul emul_osf1;
-#endif
+       int error;
+       extern int osf1_exec_ecoff_hook(struct proc *p,
+                                       struct exec_package *epp);
 
        switch (execp->f.f_magic) {
 #ifdef COMPAT_OSF1
        case ECOFF_MAGIC_ALPHA:
-               epp->ep_emul = &emul_osf1;
+               error = osf1_exec_ecoff_hook(p, epp);
                break;
 #endif
 
        case ECOFF_MAGIC_NETBSD_ALPHA:
                epp->ep_emul = &emul_netbsd;
+               error = 0;
                break;
 
        default:
-               return ENOEXEC;
+               error = ENOEXEC;
        }
-       return 0;
+       return (error);
 }
 #endif
 



Home | Main Index | Thread Index | Old Index