diff options
author | davidxu <davidxu@FreeBSD.org> | 2004-07-28 13:08:24 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2004-07-28 13:08:24 +0000 |
commit | f100dd95c413208c6680c285abc8ef3c5dae10fd (patch) | |
tree | dadf2a160ce17adecf2af0f0d83e1919f9e45799 /lib/libc/amd64/gen/signalcontext.c | |
parent | 1d71ae12e04f2a1a9ef933f5f3476a7eb8452773 (diff) | |
download | FreeBSD-src-f100dd95c413208c6680c285abc8ef3c5dae10fd.zip FreeBSD-src-f100dd95c413208c6680c285abc8ef3c5dae10fd.tar.gz |
Set fpu context flags to known values, zero is illegal.
Diffstat (limited to 'lib/libc/amd64/gen/signalcontext.c')
-rw-r--r-- | lib/libc/amd64/gen/signalcontext.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/amd64/gen/signalcontext.c b/lib/libc/amd64/gen/signalcontext.c index e24f6cb..1a2621a 100644 --- a/lib/libc/amd64/gen/signalcontext.c +++ b/lib/libc/amd64/gen/signalcontext.c @@ -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); |