svn commit: r254450 - head/lib/libthread_db/arch/arm
Andrew Turner
andrew at FreeBSD.org
Sat Aug 17 14:42:40 UTC 2013
Author: andrew
Date: Sat Aug 17 14:42:40 2013
New Revision: 254450
URL: http://svnweb.freebsd.org/changeset/base/254450
Log:
Ensure we set all fpu registers to zero by using the address and size of
the union over one of its members.
Modified:
head/lib/libthread_db/arch/arm/libpthread_md.c
Modified: head/lib/libthread_db/arch/arm/libpthread_md.c
==============================================================================
--- head/lib/libthread_db/arch/arm/libpthread_md.c Sat Aug 17 14:36:32 2013 (r254449)
+++ head/lib/libthread_db/arch/arm/libpthread_md.c Sat Aug 17 14:42:40 2013 (r254450)
@@ -90,7 +90,7 @@ pt_fpreg_to_ucontext(const struct fpreg
mcontext_t *mc = &uc->uc_mcontext;
/* XXX */
- memset(&mc->__fpu.__fpregs, 0, sizeof(__fpregset_t));
+ memset(&mc->__fpu, 0, sizeof(mc->__fpu));
}
void
More information about the svn-src-head
mailing list