include <m68k/db_machdep.h> to get the prototype for kdb_trap if DDB and

DEBUG are defined and add a cast for the second argument to the
kdb_trap call.
This commit is contained in:
veego 1997-07-17 06:27:08 +00:00
parent 1b1fe0b84e
commit 76371b8a9d
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpu_emulate.c,v 1.14 1996/12/18 05:44:31 scottr Exp $ */
/* $NetBSD: fpu_emulate.c,v 1.15 1997/07/17 06:27:08 veego Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
@ -41,6 +41,10 @@
#include <sys/systm.h>
#include <machine/frame.h>
#if defined(DDB) && defined(DEBUG)
# include <m68k/db_machdep.h>
#endif
#include "fpu_emulate.h"
static int fpu_emul_fmovmcr __P((struct fpemu *fe, struct instruction *insn));
@ -249,7 +253,7 @@ fpu_emulate(frame, fpf)
else {
printf(" fpu_emulate: sig=%d, opcode=%x, word1=%x\n",
sig, insn.is_opcode, insn.is_word1);
kdb_trap(-1, frame);
kdb_trap(-1, (db_regs_t *)&frame);
}
#endif
if (frame->f_format == 4)