Subversion Repositories HelenOS-historic

Rev

Rev 1705 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1705 Rev 1780
Line 130... Line 130...
130
/** Set thread-local-storage pointer
130
/** Set thread-local-storage pointer
131
 *
131
 *
132
 * TLS pointer is set in GS register. That means, the GS contains
132
 * TLS pointer is set in GS register. That means, the GS contains
133
 * selector, and the descriptor->base is the correct address.
133
 * selector, and the descriptor->base is the correct address.
134
 */
134
 */
135
__native sys_tls_set(__native addr)
135
unative_t sys_tls_set(unative_t addr)
136
{
136
{
137
    THREAD->arch.tls = addr;
137
    THREAD->arch.tls = addr;
138
    set_tls_desc(addr);
138
    set_tls_desc(addr);
139
 
139
 
140
    return 0;
140
    return 0;