Subversion Repositories HelenOS-historic

Rev

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

Rev 1121 Rev 1184
Line 171... Line 171...
171
 * The specs say, that on %fs:0 there is stored contents of %fs register,
171
 * The specs say, that on %fs:0 there is stored contents of %fs register,
172
 * we need not to go to CPL0 to read it.
172
 * we need not to go to CPL0 to read it.
173
 */
173
 */
174
__native sys_tls_set(__native addr)
174
__native sys_tls_set(__native addr)
175
{
175
{
176
    THREAD->tls = addr;
176
    THREAD->arch.tls = addr;
177
    write_msr(AMD_MSR_FS, addr);
177
    write_msr(AMD_MSR_FS, addr);
178
    return 0;
178
    return 0;
179
}
179
}