add experimental aarch64 support
[uclibc-ng.git] / libpthread / nptl / sysdeps / aarch64 / dl-tls.h
blobe5cd8cca30488a5e7e26de977dc8e0f4f3a8f1a3
1 /* Copyright (C) 2005-2017 Free Software Foundation, Inc.
3 The GNU C Library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public License as
5 published by the Free Software Foundation; either version 2.1 of the
6 License, or (at your option) any later version.
8 The GNU C Library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Lesser General Public License for more details.
13 You should have received a copy of the GNU Lesser General Public
14 License along with the GNU C Library; if not, see
15 <http://www.gnu.org/licenses/>. */
17 #ifndef _AARCH64_DL_TLS_H
18 #define _AARCH64_DL_TLS_H 1
20 /* Type used to represent a TLS descriptor in the GOT. */
21 struct tlsdesc
23 ptrdiff_t (*entry) (struct tlsdesc *);
24 void *arg;
27 typedef struct dl_tls_index
29 unsigned long int ti_module;
30 unsigned long int ti_offset;
31 } tls_index;
33 /* Type used as the argument in a TLS descriptor for a symbol that
34 needs dynamic TLS offsets. */
35 struct tlsdesc_dynamic_arg
37 tls_index tlsinfo;
38 size_t gen_count;
41 extern ptrdiff_t attribute_hidden
42 _dl_tlsdesc_return (struct tlsdesc *);
44 # ifdef SHARED
45 extern void *_dl_make_tlsdesc_dynamic (struct link_map *, size_t);
47 extern ptrdiff_t attribute_hidden
48 _dl_tlsdesc_dynamic (struct tlsdesc *);
49 # endif
51 extern void *__tls_get_addr (tls_index *ti);
53 #define TLS_DTV_UNALLOCATED ((void *) -1l)
55 #endif