Signed-off-by: Paolo 'Blaisorblade' Giarrusso --- um-linux-2.4.27-paolo/include/asm-um/system-i386.h | 31 --------------------- 1 files changed, 31 deletions(-) diff -puN include/asm-um/system-i386.h~remove_cmpxchg include/asm-um/system-i386.h --- um-linux-2.4.27/include/asm-um/system-i386.h~remove_cmpxchg 2005-04-15 11:12:43.000000000 +0200 +++ um-linux-2.4.27-paolo/include/asm-um/system-i386.h 2005-04-15 11:12:43.000000000 +0200 @@ -5,35 +5,4 @@ #define __HAVE_ARCH_CMPXCHG 1 -static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, - unsigned long new, int size) -{ - unsigned long prev; - switch (size) { - case 1: - __asm__ __volatile__(LOCK_PREFIX "cmpxchgb %b1,%2" - : "=a"(prev) - : "q"(new), "m"(*__xg(ptr)), "0"(old) - : "memory"); - return prev; - case 2: - __asm__ __volatile__(LOCK_PREFIX "cmpxchgw %w1,%2" - : "=a"(prev) - : "q"(new), "m"(*__xg(ptr)), "0"(old) - : "memory"); - return prev; - case 4: - __asm__ __volatile__(LOCK_PREFIX "cmpxchgl %1,%2" - : "=a"(prev) - : "q"(new), "m"(*__xg(ptr)), "0"(old) - : "memory"); - return prev; - } - return old; -} - -#define cmpxchg(ptr,o,n)\ - ((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\ - (unsigned long)(n),sizeof(*(ptr)))) - #endif _