Add prototype for cpu_exec_ecoff_setregs() to mips/inuclde/ecoff_machdep.h.

Use it in compat/ultrix/ultrix_misc.c (setting emul type on mips).
This commit is contained in:
jonathan 1997-05-24 10:26:30 +00:00
parent 2b708ca438
commit d5b9a48fd5
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ecoff_machdep.h,v 1.5 1996/05/09 23:46:18 cgd Exp $ */
/* $NetBSD: ecoff_machdep.h,v 1.6 1997/05/24 10:26:30 jonathan Exp $ */
/*
* Copyright (c) 1994 Adam Glass
@ -44,3 +44,6 @@
#define ECOFF_BADMAG(ep) ((ep)->f.f_magic != ECOFF_MAGIC_MIPSEL)
#define ECOFF_SEGMENT_ALIGNMENT(ep) ((ep)->a.vstamp < 23 ? 8 : 16)
extern void cpu_exec_ecoff_setregs __P((
struct proc *, struct exec_package *, u_long, register_t *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: ultrix_misc.c,v 1.32 1997/05/24 09:53:11 jonathan Exp $ */
/* $NetBSD: ultrix_misc.c,v 1.33 1997/05/24 10:26:32 jonathan Exp $ */
/*
* Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author)
@ -139,6 +139,7 @@ extern char *ultrix_syscallnames[];
* Select the appropriate setregs callback for the target architecture.
*/
#ifdef mips
#include <machine/ecoff_machdep.h>
#define ULTRIX_EXEC_SETREGS cpu_exec_ecoff_setregs
#endif /* mips */