diff options
author | kato <kato@FreeBSD.org> | 1997-01-30 10:45:36 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-01-30 10:45:36 +0000 |
commit | 297e5886fb6e660ba27c9ca49b79844043977c20 (patch) | |
tree | 6dc76cb0e161bfdd7e57f31feaf415d87e820bc9 | |
parent | dec8fc0e49c43b2be22598f816de9f077f3c8c24 (diff) | |
download | FreeBSD-src-297e5886fb6e660ba27c9ca49b79844043977c20.zip FreeBSD-src-297e5886fb6e660ba27c9ca49b79844043977c20.tar.gz |
Synchronize with sys/i386/isa/npx.c revision 1.38.
-rw-r--r-- | sys/pc98/pc98/npx.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/pc98/pc98/npx.c b/sys/pc98/pc98/npx.c index 38984a8..e99f179 100644 --- a/sys/pc98/pc98/npx.c +++ b/sys/pc98/pc98/npx.c @@ -49,7 +49,9 @@ #include <sys/file.h> #include <sys/proc.h> #include <sys/ioctl.h> +#ifdef NPX_DEBUG #include <sys/syslog.h> +#endif #include <sys/signalvar.h> #include <machine/cpu.h> @@ -453,20 +455,22 @@ npxexit(p) if (p == npxproc) npxsave(&curpcb->pcb_savefpu); +#ifdef NPX_DEBUG if (npx_exists) { u_int masked_exceptions; masked_exceptions = curpcb->pcb_savefpu.sv_env.en_cw & curpcb->pcb_savefpu.sv_env.en_sw & 0x7f; /* - * Overflow, divde by 0, and invalid operand would have - * caused a trap in 1.1.5. + * Log exceptions that would have trapped with the old + * control word (overflow, divide by 0, and invalid operand). */ if (masked_exceptions & 0x0d) log(LOG_ERR, "pid %d (%s) exited with masked floating point exceptions 0x%02x\n", p->p_pid, p->p_comm, masked_exceptions); } +#endif } /* |