-if test "$ARCHTYPE" != "unknown"; then
- UATOMICSRC=urcu/uatomic_arch_$ARCHTYPE.h
- ARCHSRC=urcu/arch_$ARCHTYPE.h
-else
- UATOMICSRC=urcu/uatomic_generic.h
- ARCHSRC=urcu/arch_generic.h
+if test "x$ARCHTYPE" = "xarm" ; then
+AC_MSG_CHECKING([checking for dmb instruction])
+AC_TRY_COMPILE(
+[
+],
+[
+asm volatile("dmb":::"memory");
+],
+[
+ AC_MSG_RESULT([yes])
+ AC_DEFINE([CONFIG_RCU_ARM_HAVE_DMB], [1])
+]
+,
+[
+ AC_MSG_RESULT([no])
+]
+)