mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Set fpu context flags to known values, zero is illegal.
This commit is contained in:
parent
a4eb4405e3
commit
0187c8ff4e
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue