mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
Synchronize with sys/i386/isa/npx.c revision 1.38.
This commit is contained in:
parent
d3e1120fab
commit
d44a313ca1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22119
@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user