From d44a313ca175bbd2083bd2cf196db668bca98872 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Thu, 30 Jan 1997 10:45:36 +0000 Subject: [PATCH] Synchronize with sys/i386/isa/npx.c revision 1.38. --- sys/pc98/pc98/npx.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/pc98/pc98/npx.c b/sys/pc98/pc98/npx.c index 38984a88d78..e99f1794cb2 100644 --- a/sys/pc98/pc98/npx.c +++ b/sys/pc98/pc98/npx.c @@ -49,7 +49,9 @@ #include #include #include +#ifdef NPX_DEBUG #include +#endif #include #include @@ -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 } /*