diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1993-08-28 13:25:22 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1993-08-28 13:25:22 +0000 |
commit | b722f788aadfe1ae47e6d2b5e0f623e8f5c6a7cf (patch) | |
tree | 365eed7511e7162510a30b3970887d11c6a8c8f4 /sys/kern/subr_trap.c | |
parent | 587a02a3325f03825dbc3a7aabcdaad97c3df481 (diff) | |
download | FreeBSD-src-b722f788aadfe1ae47e6d2b5e0f623e8f5c6a7cf.zip FreeBSD-src-b722f788aadfe1ae47e6d2b5e0f623e8f5c6a7cf.tar.gz |
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.
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r-- | sys/kern/subr_trap.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |