-#ifndef _URCU_ARCH_UATOMIC_ARMV7L_H
-#define _URCU_ARCH_UATOMIC_ARMV7L_H
+#ifndef _URCU_ARCH_UATOMIC_ARM_H
+#define _URCU_ARCH_UATOMIC_ARM_H
/*
- * Atomics for ARMv7. This approach is usable on kernels back to 2.6.15.
+ * Atomics for ARM. This approach is usable on kernels back to 2.6.15.
*
* Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved.
* Copyright (c) 1996-1999 by Silicon Graphics. All rights reserved.
/* xchg */
#define uatomic_xchg(addr, v) __sync_lock_test_and_set(addr, v)
-/* cmpxchg */
-#define uatomic_cmpxchg(addr, old, _new) \
- __sync_val_compare_and_swap(addr, old, _new)
-
-/* uatomic_add_return */
-#define uatomic_add_return(addr, v) __sync_add_and_fetch(addr, v)
-
#ifdef __cplusplus
}
#endif
#include <urcu/uatomic_generic.h>
-#endif /* _URCU_ARCH_UATOMIC_ARMV7L_H */
+#endif /* _URCU_ARCH_UATOMIC_ARM_H */