summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-20 07:56:46 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-20 07:56:46 +0000
commit2b8b40a2a7db2856a370cd4abb29581cd507b957 (patch)
treed81349eca1bc1537ab7d54bf78f301a0571912d9 /libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h
parent80af4542c0e78a3b5317eca0514abf908c1ae6cf (diff)
- avoid warning due to undefined preprocessor token
Diffstat (limited to 'libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h')
-rw-r--r--libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h b/libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h
index f928c5040..a6256c58f 100644
--- a/libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h
+++ b/libpthread/linuxthreads.old/sysdeps/i386/pt-machine.h
@@ -73,8 +73,8 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
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 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
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)
{