Use initial-exec tls model
[urcu.git] / include / urcu / tls-compat.h
index 8ac1ea0615ddc2eb91ee51e9e15b89bd094d4c81..3a31eeb619bec3bee3fa034c45b3faf8f7dd1a32 100644 (file)
@@ -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)
This page took 0.023678 seconds and 4 git commands to generate.