12345678910111213141516171819202122232425262728293031323334 |
- typedef struct
- {
- unsigned long int ti_module;
- unsigned long int ti_offset;
- } tls_index;
- #define TLS_TP_OFFSET 0
- #define TLS_DTV_OFFSET 0x800
- extern void *__tls_get_addr (tls_index *ti);
- #define GET_ADDR_OFFSET (ti->ti_offset + TLS_DTV_OFFSET)
- #define __TLS_GET_ADDR(__ti) (__tls_get_addr (__ti) - TLS_DTV_OFFSET)
|