Subversion Repositories HelenOS

Rev

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

Rev 3400 Rev 3552
Line 56... Line 56...
56
} tls_index;
56
} tls_index;
57
 
57
 
58
void __attribute__ ((__regparm__ (1)))
58
void __attribute__ ((__regparm__ (1)))
59
    *___tls_get_addr(tls_index *ti);
59
    *___tls_get_addr(tls_index *ti);
60
 
60
 
61
void __attribute__ ((__regparm__ (1)))
61
//void __attribute__ ((__regparm__ (1)))
62
    *___tls_get_addr(tls_index *ti)
62
//    *___tls_get_addr(tls_index *ti)
63
{
63
//{
64
    size_t tls_size;
64
//  size_t tls_size;
65
    uint8_t *tls;
65
//  uint8_t *tls;
66
 
66
//
67
    /* Calculate size of TLS block */
67
//  /* Calculate size of TLS block */
68
    tls_size = ALIGN_UP(&_tbss_end - &_tdata_start, &_tls_alignment);
68
//  tls_size = ALIGN_UP(&_tbss_end - &_tdata_start, &_tls_alignment);
69
 
69
//
70
    /* The TLS block is just before TCB */
70
//  /* The TLS block is just before TCB */
71
    tls = (uint8_t *)__tcb_get() - tls_size;
71
//  tls = (uint8_t *)__tcb_get() - tls_size;
72
 
72
//
73
    return tls + ti->ti_offset;
73
//  return tls + ti->ti_offset;
74
}
74
//}
75
 
75
 
76
/** @}
76
/** @}
77
 */
77
 */