OSDN Git Service

bionic: Rename _ARM_HAVE_LDREX_STREX to __ARM_HAVE_LDREX_STREX for consistency
authorJim Huang <jserv@0xlab.org>
Sun, 8 Aug 2010 21:35:11 +0000 (05:35 +0800)
committerJim Huang <jserv@0xlab.org>
Sun, 8 Aug 2010 21:35:11 +0000 (05:35 +0800)
The patch follows the naming manner in existing macros with prefix
__ARM_HAVE.

Change-Id: I6763ce2bf3ee85fd1da112c719543061d8d19bf4

libc/arch-arm/bionic/atomics_arm.S
libc/arch-arm/include/machine/cpu-features.h

index 047541f..f2e369d 100644 (file)
@@ -142,7 +142,7 @@ __atomic_inc:
 /* r0(new) r1(addr) -> r0(old) */
 /* replaced swp instruction with ldrex/strex for ARMv6 & ARMv7 */
 __atomic_swap:
-#if defined (_ARM_HAVE_LDREX_STREX)
+#if defined (__ARM_HAVE_LDREX_STREX)
 1:  ldrex   r2, [r1]
     strex   r3, r0, [r1]
     teq     r3, #0
index ecf6ff6..5af325b 100644 (file)
 #  define __ARM_HAVE_PC_INTERWORK
 #endif
 
-/* define _ARM_HAVE_LDREX_STREX for ARMv6 and ARMv7 architecure to be
+/* define __ARM_HAVE_LDREX_STREX for ARMv6 and ARMv7 architecure to be
  * used in replacement of depricated swp instruction
  */
 #if __ARM_ARCH__ >= 6
-#  define _ARM_HAVE_LDREX_STREX
+#  define __ARM_HAVE_LDREX_STREX
 #endif