From b722f788aadfe1ae47e6d2b5e0f623e8f5c6a7cf Mon Sep 17 00:00:00 2001 From: rgrimes Date: Sat, 28 Aug 1993 13:25:22 +0000 Subject: Changed trap.c so that a panic will occur if we do not have hardware FP and we try to call the emulator when it is not compiled in. Removed the #if defined(i486) || defined(i387) that use to call the panic if we did not have a math emulator. Removed an extranious include of i386/i386/math_emu.h from math_emulate.c. --- sys/kern/subr_trap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/kern/subr_trap.c') diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 22fc6da..545fdd3 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -43,7 +43,7 @@ * 08 Apr 93 Bruce Evans Several VM system fixes * Paul Kranenburg Add counter for vmstat */ -static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/i386/trap.c,v 1.1.1.1 1993/06/12 14:58:05 rgrimes Exp $"; +static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/i386/trap.c,v 1.2 1993/07/27 10:52:20 davidg Exp $"; /* * 386 Trap and System call handleing @@ -210,8 +210,12 @@ copyfault: /* if a transparent fault (due to context switch "late") */ if (npxdna()) return; #endif +#ifdef MATH_EMULATE i = math_emulate(&frame); if (i == 0) return; +#else /* MATH_EMULTATE */ + panic("trap: math emulation necessary!"); +#endif /* MATH_EMULTATE */ ucode = FPE_FPU_NP_TRAP; break; -- cgit v1.1