]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/l4util/include/ARCH-arm/atomic_arch.h
update
[l4.git] / l4 / pkg / l4util / include / ARCH-arm / atomic_arch.h
index 637a9235f1a96b620b80e5810afca614e0580c99..9f68d6ab9155692c3631c196db736337590b1ed1 100644 (file)
@@ -35,6 +35,20 @@ l4util_cmpxchg(volatile l4_umword_t * dest,
   return l4_atomic_cmpxchg((volatile long int *)dest, cmp_val, new_val);
 }
 
+#define __L4UTIL_ATOMIC_HAVE_ARCH_XCHG32
+L4_INLINE l4_uint32_t
+l4util_xchg32(volatile l4_uint32_t *dest, l4_uint32_t new_val)
+{
+  return l4_atomic_xchg((volatile long int *)dest, new_val);
+}
+
+#define __L4UTIL_ATOMIC_HAVE_ARCH_XCHG
+L4_INLINE l4_umword_t
+l4util_xchg(volatile l4_umword_t *dest, l4_umword_t new_val)
+{
+  return l4_atomic_xchg((volatile long int *)dest, new_val);
+}
+
 #define __L4UTIL_ATOMIC_HAVE_ARCH_ADD
 L4_INLINE void
 l4util_atomic_add(volatile long *dest, long val)