Set fpu context flags to known values, zero is illegal.
This commit is contained in:
parent
a4eb4405e3
commit
0187c8ff4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132795
@ -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