Rev 1112 | Rev 1184 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1112 | Rev 1121 | ||
|---|---|---|---|
| Line 161... | Line 161... | ||
| 161 | { |
161 | { |
| 162 | i8254_calibrate_delay_loop(); |
162 | i8254_calibrate_delay_loop(); |
| 163 | i8254_normal_operation(); |
163 | i8254_normal_operation(); |
| 164 | } |
164 | } |
| 165 | 165 | ||
| 166 | /** Set Thread-local-storeage pointer |
166 | /** Set thread-local-storage pointer |
| 167 | * |
167 | * |
| 168 | * TLS pointer is set in FS register. Unfortunately the 64-bit |
168 | * TLS pointer is set in FS register. Unfortunately the 64-bit |
| 169 | * part can be set only in CPL0 mode. |
169 | * part can be set only in CPL0 mode. |
| 170 | * |
170 | * |
| 171 | * The specs says, 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->tls = addr; |