]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove unused macros from i386 lowlevellock.h.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 25 Mar 2015 21:21:18 +0000 (21:21 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 25 Mar 2015 21:21:18 +0000 (21:21 +0000)
In the course of the work on six-argument syscalls I noticed that the
i386 lowlevellock.h contained some unused macro definitions (already
unused before my patch).  This patch removes them.

Tested for x86 that installed stripped shared libraries are unchanged
by this patch.

* sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
Remove macro.
(LLL_EBX_REG): Likewise.
(LLL_ENTER_KERNEL): Likewise.

ChangeLog
sysdeps/unix/sysv/linux/i386/lowlevellock.h

index be1ce9724967270616102788eb457f578a46362e..0a9e2493897b75d98916916b024920d7393938cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
+       Remove macro.
+       (LLL_EBX_REG): Likewise.
+       (LLL_ENTER_KERNEL): Likewise.
+
        * math/auto-libm-test-in: Add more tests of asin.
        * math/auto-libm-test-out: Regenerated.
        * sysdeps/i386/fpu/libm-test-ulps: Update.
index 2bf251fbc644ba001bc1062c0aacc7f3f9127131..f57afc6e2a90f47e98bc20b187812b66557d4386 100644 (file)
 #define LLL_LOCK_INITIALIZER_WAITERS   (2)
 
 
-#ifdef PIC
-# define LLL_EBX_LOAD  "xchgl %2, %%ebx\n"
-# define LLL_EBX_REG   "D"
-#else
-# define LLL_EBX_LOAD
-# define LLL_EBX_REG   "b"
-#endif
-
-#ifdef I386_USE_SYSENTER
-# ifdef SHARED
-#  define LLL_ENTER_KERNEL     "call *%%gs:%P6\n\t"
-# else
-#  define LLL_ENTER_KERNEL     "call *_dl_sysinfo\n\t"
-# endif
-#else
-# define LLL_ENTER_KERNEL      "int $0x80\n\t"
-#endif
-
 /* Delay in spinlock loop.  */
 #define BUSY_WAIT_NOP  asm ("rep; nop")