OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libpthread/] [linuxthreads/] [sysdeps/] [pthread/] [tls.h] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
/* Definition for thread-local data handling.  Generic version.
2
   Copyright (C) 2002 Free Software Foundation, Inc.
3
   This file is part of the GNU C Library.
4
 
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.
9
 
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.
14
 
15
   You should have received a copy of the GNU Lesser General Public
16
   License along with the GNU C Library; if not, write to the Free
17
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18
   02111-1307 USA.  */
19
 
20
/* By default no TLS support is available.  This is signaled by the
21
   absence of the symbol USE_TLS.  */
22
#undef USE_TLS
23
 
24
 
25
/* An architecture-specific version of this file has to defined a
26
   number of symbols:
27
 
28
     TLS_TCB_AT_TP  or  TLS_DTV_AT_TP
29
 
30
     The presence of one of these symbols signals which variant of
31
     the TLS ABI is used.  There are in the moment two variants
32
     available:
33
 
34
     * the thread pointer points to a thread control block
35
 
36
     * the thread pointer points to the dynamic thread vector
37
 
38
 
39
     TLS_TCB_SIZE
40
 
41
     This is the size of the thread control block structure.  How
42
     this is actually defined depends on the ABI.  The thread control
43
     block could be internal descriptor of the thread library or
44
     just a data structure which allows finding the DTV.
45
 
46
     TLS_INIT_TCB_SIZE
47
 
48
     Similarly, but this value is only used at startup and in the
49
     dynamic linker itself.  There are no threads in use at that time.
50
 
51
 
52
     TLS_TCB_ALIGN
53
 
54
     Alignment requirements for the TCB structure.
55
 
56
     TLS_INIT_TCB_ALIGN
57
 
58
     Similarly, but for the structure used at startup time.
59
 
60
 
61
     INSTALL_DTV(tcb, init_dtv)
62
 
63
     This macro must install the given initial DTV into the thread control
64
     block TCB.  The normal runtime functionality must then be able to
65
     use the value.
66
 
67
 
68
     TLS_INIT_TP(tcb, firstcall)
69
 
70
     This macro must initialize the thread pointer to enable normal TLS
71
     operation.  The first parameter is a pointer to the thread control
72
     block.  The second parameter specifies whether this is the first
73
     call for the TCB.  ld.so calls this macro more than once.
74
 
75
 
76
     THREAD_DTV()
77
 
78
     This macro returns the address of the DTV of the current thread.
79
     This normally is done using the the thread register which points
80
     to the dtv or the TCB (from which the DTV can found).
81
  */

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.