| 208 | } |
| 209 | |
| 210 | void |
| 211 | tls_set_thread_area(Thread *thread) |
| 212 | { |
| 213 | int mtcp_sys_errno __attribute__((unused)); |
| 214 | |
| 215 | if (mtcp_inline_syscall(arch_prctl, 2, ARCH_SET_FS, thread->tlsInfo.fs) |
| 216 | != 0) { |
| 217 | printf("\n*** DMTCP: Error restoring TLS.\n\n"); |
| 218 | abort(); |
| 219 | }; |
| 220 | |
| 221 | if (mtcp_inline_syscall(arch_prctl, 2, ARCH_SET_GS, thread->tlsInfo.gs) |
| 222 | != 0) { |
| 223 | printf("\n*** DMTCP: Error restoring TLS.\n\n"); |
| 224 | abort(); |
| 225 | } |
| 226 | } |
| 227 | #endif |
| 228 | |
| 229 | #ifdef __i386__ |
no test coverage detected