Rev 1121 | Rev 1287 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1121 | Rev 1184 | ||
---|---|---|---|
Line 114... | Line 114... | ||
114 | * TLS pointer is set in GS register. That means, the GS contains |
114 | * TLS pointer is set in GS register. That means, the GS contains |
115 | * selector, and the descriptor->base is the correct address. |
115 | * selector, and the descriptor->base is the correct address. |
116 | */ |
116 | */ |
117 | __native sys_tls_set(__native addr) |
117 | __native sys_tls_set(__native addr) |
118 | { |
118 | { |
119 | THREAD->tls = addr; |
119 | THREAD->arch.tls = addr; |
120 | set_tls_desc(addr); |
120 | set_tls_desc(addr); |
121 | 121 | ||
122 | return 0; |
122 | return 0; |
123 | } |
123 | } |