Back to index

glibc  2.9
Defines
tls-macros.h File Reference

Go to the source code of this file.

Defines

#define TLS_LE(x)
#define TLS_IE(x)
#define TLS_LD(x)
#define TLS_GD(x)

Define Documentation

#define TLS_GD (   x)
Value:
({  int * __result;  \
      asm (  \
        "  addil LR'" #x "-$tls_gdidx$, %%r27\n" \
       "  bl __tls_get_addr, %%r2\n" \
       "  ldo RR'" #x "-$tls_gdidx$(%%r1), %%r26\n" \
       "  copy %%r28, %0\n" \
       : "=r" (__result) \
       : \
       : "r1", "r2", "r20", "r21", "r22", "r23", "r24", \
         "r25", "r26", "r28", "r29", "r31" ); \
      __result;  \
  })

Definition at line 101 of file tls-macros.h.

#define TLS_IE (   x)
Value:
({  int * __result;  \
      unsigned long __tmp, __tmp2; \
      asm ( \
       "  mfctl %%cr27, %1\n" \
       "  addil LR'" #x "-$tls_ieoff$, %%r27\n" \
       "  ldw RR'" #x "-$tls_ieoff$(%%r1), %2\n" \
       "  add %1, %2, %0\n" \
       : "=r" (__result), "=r" (__tmp), "=r" (__tmp2) \
       : \
       : "r1" ); \
      __result;  \
  })

Definition at line 33 of file tls-macros.h.

#define TLS_LD (   x)
Value:
({  int * __result;  \
      asm (  \
       "  addil LR'" #x "-$tls_ldidx$, %%r27\n" \
       "  bl __tls_get_addr, %%r2\n" \
       "  ldo RR'" #x "-$tls_ldidx$(%%r1), %%r26\n" \
       "  addil LR'" #x "-$tls_dtpoff$, %%r28\n" \
       "  ldo RR'" #x "-$tls_dtpoff$(%%r1), %0\n" \
       : "=r" (__result) \
       : \
       : "r1", "r2", "r20", "r21", "r22", "r23", "r24", \
         "r25", "r26", "r28", "r29", "r31" ); \
      __result;  \
  })

Definition at line 67 of file tls-macros.h.

#define TLS_LE (   x)
Value:
({  int * __result;  \
      unsigned long __tmp; \
      asm ( \
       "  mfctl %%cr27, %1\n" \
       "  addil LR'" #x "-$tls_leoff$, %1\n" \
       "  ldo RR'" #x "-$tls_leoff$(%%r1), %0\n" \
        : "=r" (__result), "=r" (__tmp) \
       : \
       : "r1" );  \
      __result;  \
  })

Definition at line 4 of file tls-macros.h.