diff options
author | kib <kib@FreeBSD.org> | 2010-06-17 12:35:17 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-06-17 12:35:17 +0000 |
commit | 188338f3b72c35d64fab5c7164c87fd5da7dcb33 (patch) | |
tree | 7fc098df87d3aa9f381db4e5b970da7885b94db8 /sys/amd64 | |
parent | 881839de9841cdc02a20dc41415f5328c1467fe5 (diff) | |
download | FreeBSD-src-188338f3b72c35d64fab5c7164c87fd5da7dcb33.zip FreeBSD-src-188338f3b72c35d64fab5c7164c87fd5da7dcb33.tar.gz |
In the ia32_{get,set}_fpcontext(), use fpu{get,set}userregs instead
of fpu{get,set}regs.
Noted by: bde
MFC after: 1 month
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/ia32/ia32_signal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/ia32/ia32_signal.c b/sys/amd64/ia32/ia32_signal.c index cf1042c..e5fd077 100644 --- a/sys/amd64/ia32/ia32_signal.c +++ b/sys/amd64/ia32/ia32_signal.c @@ -98,7 +98,8 @@ ia32_get_fpcontext(struct thread *td, struct ia32_mcontext *mcp) * 64bit instruction and data pointers. Ignore the difference * for now, it should be irrelevant for most applications. */ - mcp->mc_ownedfp = fpugetregs(td, (struct savefpu *)&mcp->mc_fpstate); + mcp->mc_ownedfp = fpugetuserregs(td, + (struct savefpu *)&mcp->mc_fpstate); mcp->mc_fpformat = fpuformat(); } @@ -115,7 +116,7 @@ ia32_set_fpcontext(struct thread *td, const struct ia32_mcontext *mcp) fpstate_drop(td); else if (mcp->mc_ownedfp == _MC_FPOWNED_FPU || mcp->mc_ownedfp == _MC_FPOWNED_PCB) { - fpusetregs(td, (struct savefpu *)&mcp->mc_fpstate); + fpusetuserregs(td, (struct savefpu *)&mcp->mc_fpstate); } else return (EINVAL); return (0); |