svn commit: trunk/uClibc/libpthread/linuxthreads.old/sysdeps/i386
aldot at uclibc.org
aldot at uclibc.org
Tue May 20 07:56:46 UTC 2008
Author: aldot
Date: 2008-05-20 00:56:46 -0700 (Tue, 20 May 2008)
New Revision: 22018
Log:
- avoid warning due to undefined preprocessor token
Modified:
trunk/uClibc/libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h
Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h 2008-05-20 07:56:12 UTC (rev 22017)
+++ trunk/uClibc/libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h 2008-05-20 07:56:46 UTC (rev 22018)
@@ -73,8 +73,8 @@
return ret;
}
-#if __ASSUME_LDT_WORKS > 0
-#include "../useldt.h"
+#if defined(__ASSUME_LDT_WORKS) && __ASSUME_LDT_WORKS > 0
+#include "useldt.h"
#endif
/* The P4 and above really want some help to prevent overheating. */
@@ -121,22 +121,6 @@
return ret;
}
-#if 00
-static __always_inline int
-get_eflags (void)
-{
- int res;
- __asm__ __volatile__ ("pushfl; popl %0" : "=r" (res) : );
- return res;
-}
-
-static __always_inline void
-set_eflags (int newflags)
-{
- __asm__ __volatile__ ("pushl %0; popfl" : : "r" (newflags) : "cc");
-}
-#endif
-
PT_EI int
compare_and_swap_is_available (void)
{
More information about the uClibc-cvs
mailing list