X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Ftls-compat.h;h=3a31eeb619bec3bee3fa034c45b3faf8f7dd1a32;hp=8ac1ea0615ddc2eb91ee51e9e15b89bd094d4c81;hb=6fd172f599e8d798e68974a786dd930d876f182e;hpb=64478021edcf7a5ac3bca3fa9e8b8108d2fbb9b6 diff --git a/include/urcu/tls-compat.h b/include/urcu/tls-compat.h index 8ac1ea0..3a31eeb 100644 --- a/include/urcu/tls-compat.h +++ b/include/urcu/tls-compat.h @@ -72,6 +72,9 @@ extern "C" { # define URCU_TLS(name) (name) +# define DEFINE_URCU_TLS_IE(type, name) \ + CONFIG_RCU_TLS __attribute__((tls_model("initial-exec"))) type name + #else /* #ifndef CONFIG_RCU_TLS */ /* @@ -127,6 +130,9 @@ struct urcu_tls { # define DEFINE_URCU_TLS(type, name) \ DEFINE_URCU_TLS_1(type, name) +# define DEFINE_URCU_TLS_IE(type, name) \ + DEFINE_URCU_TLS_1(type, name) + # define URCU_TLS_1(name) (*__tls_access_ ## name()) # define URCU_TLS(name) URCU_TLS_1(name)