diff options
author | kib <kib@FreeBSD.org> | 2010-06-23 12:17:13 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-06-23 12:17:13 +0000 |
commit | 8177c022b541dfd7ea50a10fd33d22a04a4ce48d (patch) | |
tree | 6bc3fddcdeece5835325f8c43230cbe8de496e0f /sys/amd64 | |
parent | ddd061d954434ea8b04da914c0e1b724d6e8b8c1 (diff) | |
download | FreeBSD-src-8177c022b541dfd7ea50a10fd33d22a04a4ce48d.zip FreeBSD-src-8177c022b541dfd7ea50a10fd33d22a04a4ce48d.tar.gz |
Fix bugs on pc98, use npxgetuserregs() instead of npxgetregs() for
get_fpcontext(), and npxsetuserregs() for set_fpcontext). Also,
note that usercontext is not initialized anymore in fpstate_drop().
Systematically replace references to npxgetregs() and npxsetregs()
by npxgetuserregs() and npxsetuserregs() in comments.
Noted by: bde
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 0cfdfc8..c25b827 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -2123,10 +2123,10 @@ fpstate_drop(struct thread *td) * XXX force a full drop of the fpu. The above only drops it if we * owned it. * - * XXX I don't much like fpugetregs()'s semantics of doing a full + * XXX I don't much like fpugetuserregs()'s semantics of doing a full * drop. Dropping only to the pcb matches fnsave's behaviour. * We only need to drop to !PCB_INITDONE in sendsig(). But - * sendsig() is the only caller of fpugetregs()... perhaps we just + * sendsig() is the only caller of fpugetuserregs()... perhaps we just * have too many layers. */ curthread->td_pcb->pcb_flags &= ~(PCB_FPUINITDONE | |