svn commit: trunk/uClibc/libpthread/linuxthreads.old/sysdeps/x86_64

vapier at uclibc.org vapier at uclibc.org
Mon Jan 29 03:22:37 UTC 2007


Author: vapier
Date: 2007-01-28 19:22:36 -0800 (Sun, 28 Jan 2007)
New Revision: 17619

Log:
since these functions get exported, namespace the arguments

Modified:
   trunk/uClibc/libpthread/linuxthreads.old/sysdeps/x86_64/pt-machine.h


Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads.old/sysdeps/x86_64/pt-machine.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/sysdeps/x86_64/pt-machine.h	2007-01-29 03:21:52 UTC (rev 17618)
+++ trunk/uClibc/libpthread/linuxthreads.old/sysdeps/x86_64/pt-machine.h	2007-01-29 03:22:36 UTC (rev 17619)
@@ -31,8 +31,8 @@
 #  define PT_EI extern inline __attribute__ ((always_inline))
 # endif
 
-extern long int testandset (int *spinlock);
-extern int __compare_and_swap (long int *p, long int oldval, long int newval);
+extern long int testandset (int *__spinlock);
+extern int __compare_and_swap (long int *__p, long int __oldval, long int __newval);
 
 /* Get some notion of the current stack.  Need not be exactly the top
    of the stack, just something somewhere in the current frame.  */
@@ -42,14 +42,14 @@
 
 /* Spinlock implementation; required.  */
 PT_EI long int
-testandset (int *spinlock)
+testandset (int *__spinlock)
 {
   long int ret;
 
   __asm__ __volatile__ (
 	"xchgl %k0, %1"
-	: "=r"(ret), "=m"(*spinlock)
-	: "0"(1), "m"(*spinlock)
+	: "=r"(ret), "=m"(*__spinlock)
+	: "0"(1), "m"(*__spinlock)
 	: "memory");
 
   return ret;
@@ -60,14 +60,14 @@
 # define HAS_COMPARE_AND_SWAP
 
 PT_EI int
-__compare_and_swap (long int *p, long int oldval, long int newval)
+__compare_and_swap (long int *__p, long int __oldval, long int __newval)
 {
   char ret;
   long int readval;
 
   __asm__ __volatile__ ("lock; cmpxchgq %3, %1; sete %0"
-			: "=q" (ret), "=m" (*p), "=a" (readval)
-			: "r" (newval), "m" (*p), "a" (oldval)
+			: "=q" (ret), "=m" (*__p), "=a" (readval)
+			: "r" (__newval), "m" (*__p), "a" (__oldval)
 			: "memory");
   return ret;
 }




More information about the uClibc-cvs mailing list