summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/pc98/pc98/npx.c8
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
}
/*