123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef _XTENSA_DL_TLS_H
- #define _XTENSA_DL_TLS_H 1
- typedef struct
- {
- unsigned long int ti_module;
- unsigned long int ti_offset;
- } tls_index;
- extern void *__tls_get_addr (tls_index *ti);
- struct tlsdesc_dynamic_arg
- {
- tls_index tlsinfo;
- size_t gen_count;
- };
- #ifdef __FDPIC__
- struct tlsdesc
- {
- ptrdiff_t (*entry)(struct tlsdesc *);
- void *argument;
- };
- extern ptrdiff_t attribute_hidden
- _dl_tlsdesc_return(struct tlsdesc *);
- extern void *_dl_make_tlsdesc_dynamic (struct link_map *map, size_t ti_offset);
- extern ptrdiff_t attribute_hidden
- _dl_tlsdesc_dynamic(struct tlsdesc *);
- #else
- struct tlsdesc
- {
- union
- {
- void *pointer;
- long value;
- } argument;
- ptrdiff_t (*entry)(struct tlsdesc *);
- };
- extern ptrdiff_t attribute_hidden
- _dl_tlsdesc_return(struct tlsdesc_dynamic_arg *);
- extern void *_dl_make_tlsdesc_dynamic (struct link_map *map, size_t ti_offset);
- extern ptrdiff_t attribute_hidden
- _dl_tlsdesc_dynamic(struct tlsdesc_dynamic_arg *);
- #endif
- #endif
|