Use slightly more idiomatic expression to get the address of array.
Tested by: dim, pgj Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
87b94d9a92
commit
cb5bfd1240
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user