Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/lib/libpthread/arch/i386 Bit values are not the same as...



details:   https://anonhg.NetBSD.org/src/rev/76707302aa1b
branches:  nathanw_sa
changeset: 506164:76707302aa1b
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Thu Aug 15 02:07:34 2002 +0000

description:
Bit values are not the same as bit positions; fix the test for the
_UC_FPU flag.

diffstat:

 lib/libpthread/arch/i386/_getsetc.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 7304e0082911 -r 76707302aa1b lib/libpthread/arch/i386/_getsetc.S
--- a/lib/libpthread/arch/i386/_getsetc.S       Thu Aug 15 01:30:02 2002 +0000
+++ b/lib/libpthread/arch/i386/_getsetc.S       Thu Aug 15 02:07:34 2002 +0000
@@ -62,8 +62,8 @@
        leal    -4(%edx), %esp                          ; \
        ret                                             ; \
                                                        ; \
-1:     bt      $_UC_FPU, %eax                          ; \
-       jnc     2f                                      ; \
+1:     and     $_UC_FPU, %eax                          ; \
+       jz      2f                                      ; \
        FPLOAD(%ecx)                                    ; \
 2:     movl    (UC_REGS + _REG_GS * 4)(%ecx), %gs      ; \
        movl    (UC_REGS + _REG_FS * 4)(%ecx), %fs      ; \



Home | Main Index | Thread Index | Old Index