summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2003-09-22 14:34:02 +0000
committerDavid Xu <davidxu@FreeBSD.org>2003-09-22 14:34:02 +0000
commitb1f054a092502602df2ccb5810368b4f11caa8ba (patch)
tree65a8d2efb6bfc6ca2cbb229988c5443e23059473 /lib
parent84792e72d6663287ddbb86d67fea92a0dc9d4431 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libkse/arch/i386/i386/thr_getcontext.S4
-rw-r--r--lib/libpthread/arch/i386/i386/thr_getcontext.S4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libkse/arch/i386/i386/thr_getcontext.S b/lib/libkse/arch/i386/i386/thr_getcontext.S
index 7f58dce4248f..c3d6a78693af 100644
--- a/lib/libkse/arch/i386/i386/thr_getcontext.S
+++ b/lib/libkse/arch/i386/i386/thr_getcontext.S
@@ -88,9 +88,9 @@ ENTRY(__thr_setcontext)
cmpl $MC_OWNEDFP_PCB, MC_OWNEDFP_OFFSET(%edx)
jne 5f
3: cmpl $MC_FPFMT_387, MC_FPFMT_OFFSET(%edx)
- jne 5f
+ jne 4f
frstor MC_FPREGS_OFFSET(%edx) /* restore 387 FP regs */
- jmp 5f
+ jmp 6f
4: cmpl $MC_FPFMT_XMM, MC_FPFMT_OFFSET(%edx)
jne 5f
fxrstor MC_FPREGS_OFFSET(%edx) /* restore XMM FP regs */
diff --git a/lib/libpthread/arch/i386/i386/thr_getcontext.S b/lib/libpthread/arch/i386/i386/thr_getcontext.S
index 7f58dce4248f..c3d6a78693af 100644
--- a/lib/libpthread/arch/i386/i386/thr_getcontext.S
+++ b/lib/libpthread/arch/i386/i386/thr_getcontext.S
@@ -88,9 +88,9 @@ ENTRY(__thr_setcontext)
cmpl $MC_OWNEDFP_PCB, MC_OWNEDFP_OFFSET(%edx)
jne 5f
3: cmpl $MC_FPFMT_387, MC_FPFMT_OFFSET(%edx)
- jne 5f
+ jne 4f
frstor MC_FPREGS_OFFSET(%edx) /* restore 387 FP regs */
- jmp 5f
+ jmp 6f
4: cmpl $MC_FPFMT_XMM, MC_FPFMT_OFFSET(%edx)
jne 5f
fxrstor MC_FPREGS_OFFSET(%edx) /* restore XMM FP regs */