From d5b9a48fd52c9ffca2b65c37a3627925e1ce2e54 Mon Sep 17 00:00:00 2001 From: jonathan Date: Sat, 24 May 1997 10:26:30 +0000 Subject: [PATCH] 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). --- sys/arch/mips/include/ecoff_machdep.h | 5 ++++- sys/compat/ultrix/ultrix_misc.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/mips/include/ecoff_machdep.h b/sys/arch/mips/include/ecoff_machdep.h index 72dba1945022..82d0830f86a3 100644 --- a/sys/arch/mips/include/ecoff_machdep.h +++ b/sys/arch/mips/include/ecoff_machdep.h @@ -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 *)); diff --git a/sys/compat/ultrix/ultrix_misc.c b/sys/compat/ultrix/ultrix_misc.c index 5b3a338158f3..8356b59d062d 100644 --- a/sys/compat/ultrix/ultrix_misc.c +++ b/sys/compat/ultrix/ultrix_misc.c @@ -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 #define ULTRIX_EXEC_SETREGS cpu_exec_ecoff_setregs #endif /* mips */