Set fpu context flags to known values, zero is illegal.
This commit is contained in:
parent
1d71ae12e0
commit
f100dd95c4
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user