1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Disabled logging of masked exceptions on exit. Keep the side effect of

saving the state (see rev.1.17).
This commit is contained in:
Bruce Evans 1997-01-29 13:46:28 +00:00
parent b3136a8709
commit 26add14927
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22093
3 changed files with 18 additions and 6 deletions

View File

@ -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>
@ -411,20 +413,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
}
/*

View File

@ -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>
@ -411,20 +413,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
}
/*

View File

@ -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>
@ -411,20 +413,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
}
/*