From: graichen Date: Mon, 13 Jan 1997 11:42:47 +0000 (+0000) Subject: use the cpu_exec from the arc X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=79f513a15cd2b7ac563f8de6a89b8b419fbfc48c;p=openbsd use the cpu_exec from the arc --- diff --git a/sys/arch/pmax/pmax/cpu_exec.c b/sys/arch/pmax/pmax/cpu_exec.c index 4e3e657011a..5a57459e139 100644 --- a/sys/arch/pmax/pmax/cpu_exec.c +++ b/sys/arch/pmax/pmax/cpu_exec.c @@ -66,9 +66,8 @@ cpu_exec_aout_makecmds(p, epp) return ENOEXEC; } -#ifdef COMPAT_ULTRIX -extern struct emul emul_ultrix; +#if defined(_KERN_DO_ECOFF) void cpu_exec_ecoff_setregs(p, pack, stack, retval) struct proc *p; @@ -92,13 +91,18 @@ cpu_exec_ecoff_setregs(p, pack, stack, retval) * */ int -cpu_exec_ecoff_hook(p, epp, eap) +cpu_exec_ecoff_hook(p, epp) struct proc *p; struct exec_package *epp; - struct ecoff_aouthdr *eap; { +#ifdef COMPAT_ULTRIX + extern struct emul emul_ultrix; +#endif +#if defined(COMPAT_ULTRIX) epp->ep_emul = &emul_ultrix; +#endif return 0; } -#endif + +#endif /* _KERN_DO_ECOFF */