libpthread/nptl: make default stack size configurable
[uclibc-ng.git] / libpthread / nptl / sysdeps / xtensa / dl-tls.h
blobadc02d74a55cb60f3a131ada3ac7e66da3cf1e24
1 /* Thread-local storage handling in the ELF dynamic linker. Xtensa version.
2 Copyright (C) 2013 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, see <http://www.gnu.org/licenses/>.  */
19 #ifndef _XTENSA_DL_TLS_H
20 #define _XTENSA_DL_TLS_H 1
22 /* Type used for the representation of TLS information in the GOT. */
23 typedef struct
25 unsigned long int ti_module;
26 unsigned long int ti_offset;
27 } tls_index;
29 extern void *__tls_get_addr (tls_index *ti);
31 /* Type used to represent a TLS descriptor. */
32 struct tlsdesc
34 union
36 void *pointer;
37 long value;
38 } argument;
39 ptrdiff_t (*entry)(struct tlsdesc *);
42 /* Type used as the argument in a TLS descriptor for a symbol that
43 needs dynamic TLS offsets. */
44 struct tlsdesc_dynamic_arg
46 tls_index tlsinfo;
47 size_t gen_count;
50 extern ptrdiff_t attribute_hidden
51 _dl_tlsdesc_return(struct tlsdesc_dynamic_arg *);
53 extern void *_dl_make_tlsdesc_dynamic (struct link_map *map, size_t ti_offset);
54 extern ptrdiff_t attribute_hidden
55 _dl_tlsdesc_dynamic(struct tlsdesc_dynamic_arg *);
57 #endif