Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2013 14:42:40 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254450 - head/lib/libthread_db/arch/arm
Message-ID:  <201308171442.r7HEgeUY070285@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308171442.r7HEgeUY070285>