svn commit: r251039 - in head/sys: amd64/amd64 amd64/ia32 i386/i386

Konstantin Belousov kib at FreeBSD.org
Mon May 27 18:39:40 UTC 2013


Author: kib
Date: Mon May 27 18:39:39 2013
New Revision: 251039
URL: http://svnweb.freebsd.org/changeset/base/251039

Log:
  Use slightly more idiomatic expression to get the address of array.
  
  Tested by:	dim, pgj
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/amd64/amd64/machdep.c
  head/sys/amd64/ia32/ia32_signal.c
  head/sys/i386/i386/machdep.c

Modified: head/sys/amd64/amd64/machdep.c
==============================================================================
--- head/sys/amd64/amd64/machdep.c	Mon May 27 18:36:46 2013	(r251038)
+++ head/sys/amd64/amd64/machdep.c	Mon May 27 18:39:39 2013	(r251039)
@@ -2278,7 +2278,7 @@ get_fpcontext(struct thread *td, mcontex
 	size_t max_len, len;
 
 	mcp->mc_ownedfp = fpugetregs(td);
-	bcopy(get_pcb_user_save_td(td), &mcp->mc_fpstate,
+	bcopy(get_pcb_user_save_td(td), &mcp->mc_fpstate[0],
 	    sizeof(mcp->mc_fpstate));
 	mcp->mc_fpformat = fpuformat();
 	if (!use_xsave || xfpusave_len == 0)

Modified: head/sys/amd64/ia32/ia32_signal.c
==============================================================================
--- head/sys/amd64/ia32/ia32_signal.c	Mon May 27 18:36:46 2013	(r251038)
+++ head/sys/amd64/ia32/ia32_signal.c	Mon May 27 18:39:39 2013	(r251039)
@@ -101,7 +101,7 @@ ia32_get_fpcontext(struct thread *td, st
 	 * for now, it should be irrelevant for most applications.
 	 */
 	mcp->mc_ownedfp = fpugetregs(td);
-	bcopy(get_pcb_user_save_td(td), &mcp->mc_fpstate,
+	bcopy(get_pcb_user_save_td(td), &mcp->mc_fpstate[0],
 	    sizeof(mcp->mc_fpstate));
 	mcp->mc_fpformat = fpuformat();
 	if (!use_xsave || xfpusave_len == 0)

Modified: head/sys/i386/i386/machdep.c
==============================================================================
--- head/sys/i386/i386/machdep.c	Mon May 27 18:36:46 2013	(r251038)
+++ head/sys/i386/i386/machdep.c	Mon May 27 18:39:39 2013	(r251039)
@@ -3488,7 +3488,7 @@ get_fpcontext(struct thread *td, mcontex
 	bzero(mcp->mc_fpstate, sizeof(mcp->mc_fpstate));
 #else
 	mcp->mc_ownedfp = npxgetregs(td);
-	bcopy(&td->td_pcb->pcb_user_save, &mcp->mc_fpstate,
+	bcopy(&td->td_pcb->pcb_user_save, &mcp->mc_fpstate[0],
 	    sizeof(mcp->mc_fpstate));
 	mcp->mc_fpformat = npxformat();
 #endif


More information about the svn-src-head mailing list