summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-05-27 18:39:39 +0000
committerkib <kib@FreeBSD.org>2013-05-27 18:39:39 +0000
commiteaa828d3a577b0680cd7fa63e4b94c95001ce09e (patch)
treeb991ea19fc2cfd5e64bf668cb6c803d181587db7
parent4f651f991c24010b523b519e8a5f490f4f3e8a62 (diff)
downloadFreeBSD-src-eaa828d3a577b0680cd7fa63e4b94c95001ce09e.zip
FreeBSD-src-eaa828d3a577b0680cd7fa63e4b94c95001ce09e.tar.gz
Use slightly more idiomatic expression to get the address of array.
Tested by: dim, pgj Sponsored by: The FreeBSD Foundation MFC after: 1 week
-rw-r--r--sys/amd64/amd64/machdep.c2
-rw-r--r--sys/amd64/ia32/ia32_signal.c2
-rw-r--r--sys/i386/i386/machdep.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index bc336e9..a1c61eb 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -2278,7 +2278,7 @@ get_fpcontext(struct thread *td, mcontext_t *mcp, char *xfpusave,
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)
diff --git a/sys/amd64/ia32/ia32_signal.c b/sys/amd64/ia32/ia32_signal.c
index 9130544..cff57f6 100644
--- a/sys/amd64/ia32/ia32_signal.c
+++ b/sys/amd64/ia32/ia32_signal.c
@@ -101,7 +101,7 @@ ia32_get_fpcontext(struct thread *td, struct ia32_mcontext *mcp,
* 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)
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index f67f758..51765e9 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -3488,7 +3488,7 @@ get_fpcontext(struct thread *td, mcontext_t *mcp)
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
OpenPOWER on IntegriCloud