Subversion Repositories HelenOS

Rev

Rev 1787 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1787 Rev 1866
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
 /** @addtogroup libcmips32
29
/** @addtogroup libcmips32 
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 * @ingroup libcmips32eb   
33
 * @ingroup libcmips32eb   
34
 */
34
 */
35
 
35
 
36
/* TLS for MIPS is described in http://www.linux-mips.org/wiki/NPTL */
36
/* TLS for MIPS is described in http://www.linux-mips.org/wiki/NPTL */
37
 
37
 
38
#ifndef __LIBC__mips32THREAD_H__
38
#ifndef LIBC_mips32THREAD_H_
39
#define __LIBC__mips32THREAD_H__
39
#define LIBC_mips32THREAD_H_
40
 
40
 
41
/* I did not find any specification (neither MIPS nor PowerPC), but
41
/* I did not find any specification (neither MIPS nor PowerPC), but
42
 * as I found it
42
 * as I found it
43
 * - it uses Variant II
43
 * - it uses Variant II
44
 * - TCB is at Address(First TLS Block)+0x7000.
44
 * - TCB is at Address(First TLS Block)+0x7000.
Line 73... Line 73...
73
    return (tcb_t *)(retval - MIPS_TP_OFFSET - sizeof(tcb_t));
73
    return (tcb_t *)(retval - MIPS_TP_OFFSET - sizeof(tcb_t));
74
}
74
}
75
 
75
 
76
#endif
76
#endif
77
 
77
 
78
 /** @}
78
/** @}
79
 */
79
 */
80
 
-