Subversion Repositories HelenOS

Rev

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

Rev 3004 Rev 3589
Line 48... Line 48...
48
        : "r" (i)
48
        : "r" (i)
49
        : "%r3","%r9"
49
        : "%r3","%r9"
50
    ) ;
50
    ) ;
51
}
51
}
52
 
52
 
53
typedef struct {
53
//typedef struct {
54
    unsigned long int ti_module;
54
//  unsigned long int ti_module;
55
    unsigned long int ti_offset;
55
//  unsigned long int ti_offset;
56
} tls_index;
56
//} tls_index;
57
 
57
 
58
void *__tls_get_addr(tls_index *ti);
58
//void *__tls_get_addr(tls_index *ti);
59
 
59
 
60
/* ppc32 uses TLS variant 1 */
60
///* ppc32 uses TLS variant 1 */
61
void *__tls_get_addr(tls_index *ti)
61
//void *__tls_get_addr(tls_index *ti)
62
{
62
//{
63
    uint8_t *tls;
63
//  uint8_t *tls;
64
 
64
//
65
    /* The TLS section is just after TCB */
65
//  /* The TLS section is just after TCB */
66
    tls = (uint8_t *)__tcb_get() + sizeof(tcb_t);
66
//  tls = (uint8_t *)__tcb_get() + sizeof(tcb_t);
67
 
67
//
68
    return tls + ti->ti_offset;
68
//  return tls + ti->ti_offset;
69
}
69
//}
70
 
70
 
71
/** @}
71
/** @}
72
 */
72
 */