X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Farch_arm.h;h=83cbb60a209f286093e9abb10ce238329b385243;hb=5e626e0ea1c03a239cca95bf8c3fc9d4fbebde12;hp=125066b8239190b5be4580c11ba406a7baa8be7e;hpb=93af08d904c71a00d1ad716cb3ffe6ad342ba97c;p=urcu.git diff --git a/urcu/arch_arm.h b/urcu/arch_arm.h index 125066b..83cbb60 100644 --- a/urcu/arch_arm.h +++ b/urcu/arch_arm.h @@ -1,8 +1,8 @@ -#ifndef _URCU_ARCH_ARMV7L_H -#define _URCU_ARCH_ARMV7L_H +#ifndef _URCU_ARCH_ARM_H +#define _URCU_ARCH_ARM_H /* - * arch_armv7l.h: trivial definitions for the ARMv7 architecture. + * arch_arm.h: trivial definitions for the ARM architecture. * * Copyright (c) 2010 Paul E. McKenney, IBM Corporation. * Copyright (c) 2009 Mathieu Desnoyers @@ -29,7 +29,9 @@ extern "C" { #endif +#ifdef CONFIG_ARM_HAVE_DMB #define cmm_mb() asm volatile("dmb":::"memory") +#endif /* CONFIG_ARM_HAVE_DMB */ #include #include @@ -53,4 +55,4 @@ static inline cycles_t caa_get_cycles (void) #include -#endif /* _URCU_ARCH_ARMV7L_H */ +#endif /* _URCU_ARCH_ARM_H */