Set fpu context flags to known values, zero is illegal.

This commit is contained in:
David Xu 2004-07-28 13:08:24 +00:00
parent a4eb4405e3
commit 0187c8ff4e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132795

View File

@ -76,6 +76,8 @@ __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func)
* Setup the ucontext of the signal handler.
*/
bzero(&ucp->uc_mcontext, sizeof(ucp->uc_mcontext));
ucp->uc_mcontext.mc_fpformat = _MC_FPFMT_NODEV;
ucp->uc_mcontext.mc_ownedfp = _MC_FPOWNED_NONE;
ucp->uc_link = sig_uc;
sigdelset(&ucp->uc_sigmask, sig);