X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Farch_s390.h;h=92341a07e2edbec9f49d550fb4aa295761e04ac6;hb=02be55611d3b1c7bf4fdfcb3a9c98f621882d417;hp=148545b2df5d44c435a96bfde6718018e4069888;hpb=5b3c6672bc2d47241979495dca0ad0645db9ff26;p=urcu.git diff --git a/urcu/arch_s390.h b/urcu/arch_s390.h index 148545b..92341a0 100644 --- a/urcu/arch_s390.h +++ b/urcu/arch_s390.h @@ -1,5 +1,5 @@ -#ifndef _ARCH_S390_H -#define _ARCH_S390_H +#ifndef _URCU_ARCH_S390_H +#define _URCU_ARCH_S390_H /* * Trivial definitions for the S390 architecture based on information from the @@ -31,6 +31,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #define CONFIG_HAVE_MEM_COHERENCY #define CACHE_LINE_SIZE 128 @@ -48,13 +52,13 @@ #endif #define mb() __asm__ __volatile__("bcr 15,0" : : : "memory") -#define rmb() __asm__ __volatile__("bcr 15,0" : : : "memory"); -#define wmb() __asm__ __volatile__("bcr 15,0" : : : "memory"); +#define rmb() __asm__ __volatile__("bcr 15,0" : : : "memory") +#define wmb() __asm__ __volatile__("bcr 15,0" : : : "memory") #define mc() barrier() #define rmc() barrier() #define wmc() barrier() -#ifdef CONFIG_URCU_SMP +#ifdef CONFIG_RCU_SMP #define smp_mb() mb() #define smp_rmb() rmb() #define smp_wmb() wmb() @@ -94,4 +98,8 @@ static inline cycles_t get_cycles (void) return cycles; } -#endif /* _ARCH_S390_H */ +#ifdef __cplusplus +} +#endif + +#endif /* _URCU_ARCH_S390_H */