Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jun 2013 04:57:15 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r251290 - in stable/9/sys: amd64/amd64 amd64/ia32 i386/i386
Message-ID:  <201306030457.r534vFPX015982@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Jun  3 04:57:15 2013
New Revision: 251290
URL: http://svnweb.freebsd.org/changeset/base/251290

Log:
  MFC r251039:
  Use slightly more idiomatic expression to get the address of array.

Modified:
  stable/9/sys/amd64/amd64/machdep.c
  stable/9/sys/amd64/ia32/ia32_signal.c
  stable/9/sys/i386/i386/machdep.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/amd64/amd64/machdep.c
==============================================================================
--- stable/9/sys/amd64/amd64/machdep.c	Mon Jun  3 04:55:03 2013	(r251289)
+++ stable/9/sys/amd64/amd64/machdep.c	Mon Jun  3 04:57:15 2013	(r251290)
@@ -2244,7 +2244,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: stable/9/sys/amd64/ia32/ia32_signal.c
==============================================================================
--- stable/9/sys/amd64/ia32/ia32_signal.c	Mon Jun  3 04:55:03 2013	(r251289)
+++ stable/9/sys/amd64/ia32/ia32_signal.c	Mon Jun  3 04:57:15 2013	(r251290)
@@ -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: stable/9/sys/i386/i386/machdep.c
==============================================================================
--- stable/9/sys/i386/i386/machdep.c	Mon Jun  3 04:55:03 2013	(r251289)
+++ stable/9/sys/i386/i386/machdep.c	Mon Jun  3 04:57:15 2013	(r251290)
@@ -3453,7 +3453,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



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