X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=compat_arch_x86.c;h=5342c7be58842617da03ee3da930bfaea83e6947;hp=fc504c3356c95808d05cc88f5eb3742c631bc9eb;hb=4d001e962e4f54d5128ac55bf03fdef77e41aa58;hpb=bf9de1b724767a7b0d9f32385ed3ab8623aabb71 diff --git a/compat_arch_x86.c b/compat_arch_x86.c index fc504c3..5342c7b 100644 --- a/compat_arch_x86.c +++ b/compat_arch_x86.c @@ -3,7 +3,7 @@ * * Userspace RCU library - x86 compatibility checks * - * Copyright (c) 2009 Mathieu Desnoyers + * Copyright (c) 2009 Mathieu Desnoyers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -28,17 +28,17 @@ /* * It does not really matter if the constructor is called before using - * the library, as long as the caller checks if __urcu_cas_avail < 0 and calls + * the library, as long as the caller checks if __rcu_cas_avail < 0 and calls * compat_arch_init() explicitely if needed. */ -int __attribute__((constructor)) __urcu_cas_init(void); +int __attribute__((constructor)) __rcu_cas_init(void); /* * -1: unknown * 1: available * 0: unavailable */ -int __urcu_cas_avail = -1; +int __rcu_cas_avail = -1; static pthread_mutex_t compat_mutex = PTHREAD_MUTEX_INITIALIZER; @@ -231,9 +231,9 @@ unsigned long _compat_uatomic_add_return(void *addr, unsigned long v, int len) return result; } -int __urcu_cas_init(void) +int __rcu_cas_init(void) { - if (__urcu_cas_avail < 0) - __urcu_cas_avail = compare_and_swap_is_available(); - return __urcu_cas_avail; + if (__rcu_cas_avail < 0) + __rcu_cas_avail = compare_and_swap_is_available(); + return __rcu_cas_avail; }