X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Falpha.h;h=e61f82c0728047528acf484d74cf7011a892914c;hp=300213e2ba616d9e35b8e3a6c33a110d1a08c474;hb=f8c43f458c80566d298d539ec518a8be8c7cc861;hpb=1b9119f8d4c3f40a61d4ee5403f0e7e5967c33d8 diff --git a/urcu/arch/alpha.h b/urcu/arch/alpha.h index 300213e..e61f82c 100644 --- a/urcu/arch/alpha.h +++ b/urcu/arch/alpha.h @@ -23,21 +23,15 @@ #include #include +#include #ifdef __cplusplus extern "C" { #endif -#define cmm_mb() asm volatile("mb":::"memory") -#define cmm_wmb() asm volatile("wmb":::"memory") -#define cmm_read_barrier_depends() asm volatile("mb":::"memory") - -typedef unsigned long long cycles_t; - -static inline cycles_t caa_get_cycles (void) -{ - return 0; /* not supported */ -} +#define cmm_mb() __asm__ __volatile__ ("mb":::"memory") +#define cmm_wmb() __asm__ __volatile__ ("wmb":::"memory") +#define cmm_read_barrier_depends() __asm__ __volatile__ ("mb":::"memory") #ifdef __cplusplus }