diff options
author | mmel <mmel@FreeBSD.org> | 2017-04-16 07:33:47 +0000 |
---|---|---|
committer | mmel <mmel@FreeBSD.org> | 2017-04-16 07:33:47 +0000 |
commit | 2d4b5ed3310ee2a108a26c0817ed03a5aeb0874d (patch) | |
tree | 239eb852f17c503f3919ea8dc9f50fbc3d4e9cb9 /lib | |
parent | 2589e5f69f04cfa8fcf63ea99bd8a5914762ab67 (diff) | |
download | FreeBSD-src-2d4b5ed3310ee2a108a26c0817ed03a5aeb0874d.zip FreeBSD-src-2d4b5ed3310ee2a108a26c0817ed03a5aeb0874d.tar.gz |
MFC r315900,r315973,r315974:
r315900:
Cleanup structures related to VFP and/or mcontext_t. - in mcontext_t,
rename newer used 'union __vfp' to equaly sized 'mc_spare'.
Space allocated by 'union __vfp' is too small and cannot hold full VFP
context.
- move structures defined in fp.h to more appropriate headers. - remove
all unused VFP structures.
r315973:
Save VFP state on fork(). Update the copy of VFP state in PCB before it is
cloned for new process.
r315974:
Preserve VFP state across signal delivery.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libthread_db/arch/arm/libpthread_md.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libthread_db/arch/arm/libpthread_md.c b/lib/libthread_db/arch/arm/libpthread_md.c index a72df2e..086a3b5 100644 --- a/lib/libthread_db/arch/arm/libpthread_md.c +++ b/lib/libthread_db/arch/arm/libpthread_md.c @@ -90,7 +90,9 @@ pt_fpreg_to_ucontext(const struct fpreg *r __unused, ucontext_t *uc) mcontext_t *mc = &uc->uc_mcontext; /* XXX */ - memset(&mc->__fpu, 0, sizeof(mc->__fpu)); + mc->mc_vfp_size = 0; + mc->mc_vfp_ptr = NULL; + memset(mc->mc_spare, 0, sizeof(mc->mc_spare)); } void |