]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[thirdparty/glibc.git] / nptl / sysdeps / unix / sysv / linux / i386 / i486 / sem_post.S
index 71e96d2228ef6f51175b0cd840cf9bdd97f485e9..3d67329bd1569d76de0bca331bd57f0a7c26aee9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -65,14 +65,9 @@ __new_sem_post:
 #endif
        addl    $_GLOBAL_OFFSET_TABLE_, %ebx
 #if USE___THREAD
-# ifdef NO_TLS_DIRECT_SEG_REFS
-       movl    errno@gotntpoff(%ebx), %edx
-       addl    %gs:0, %edx
+       movl    %gs:0, %edx
+       subl    errno@gottpoff(%ebx), %edx
        movl    $EINVAL, (%edx)
-# else
-       movl    errno@gotntpoff(%ebx), %edx
-       movl    $EINVAL, %gs:(%edx)
-# endif
 #else
        call    __errno_location@plt
        movl    $EINVAL, (%eax)