diff options
| author | KATO Takenori <kato@FreeBSD.org> | 1997-01-30 10:45:36 +0000 |
|---|---|---|
| committer | KATO Takenori <kato@FreeBSD.org> | 1997-01-30 10:45:36 +0000 |
| commit | d44a313ca175bbd2083bd2cf196db668bca98872 (patch) | |
| tree | 6dc76cb0e161bfdd7e57f31feaf415d87e820bc9 | |
| parent | d3e1120fabfa631b0b297319a66ca94e48b0ff36 (diff) | |
Notes
| -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 38984a88d780..e99f1794cb29 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 } /* |
