aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/tls.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/os-Linux/tls.c')
-rw-r--r--arch/um/os-Linux/tls.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/arch/um/os-Linux/tls.c b/arch/um/os-Linux/tls.c
index 16215b990804..282bd25e19ef 100644
--- a/arch/um/os-Linux/tls.c
+++ b/arch/um/os-Linux/tls.c
@@ -8,11 +8,6 @@
8 8
9/* TLS support - we basically rely on the host's one.*/ 9/* TLS support - we basically rely on the host's one.*/
10 10
11/* In TT mode, this should be called only by the tracing thread, and makes sense
12 * only for PTRACE_SET_THREAD_AREA. In SKAS mode, it's used normally.
13 *
14 */
15
16#ifndef PTRACE_GET_THREAD_AREA 11#ifndef PTRACE_GET_THREAD_AREA
17#define PTRACE_GET_THREAD_AREA 25 12#define PTRACE_GET_THREAD_AREA 25
18#endif 13#endif
@@ -32,8 +27,6 @@ int os_set_thread_area(user_desc_t *info, int pid)
32 return ret; 27 return ret;
33} 28}
34 29
35#ifdef UML_CONFIG_MODE_SKAS
36
37int os_get_thread_area(user_desc_t *info, int pid) 30int os_get_thread_area(user_desc_t *info, int pid)
38{ 31{
39 int ret; 32 int ret;
@@ -44,32 +37,3 @@ int os_get_thread_area(user_desc_t *info, int pid)
44 ret = -errno; 37 ret = -errno;
45 return ret; 38 return ret;
46} 39}
47
48#endif
49
50#ifdef UML_CONFIG_MODE_TT
51#include "linux/unistd.h"
52
53int do_set_thread_area_tt(user_desc_t *info)
54{
55 int ret;
56
57 ret = syscall(__NR_set_thread_area,info);
58 if (ret < 0) {
59 ret = -errno;
60 }
61 return ret;
62}
63
64int do_get_thread_area_tt(user_desc_t *info)
65{
66 int ret;
67
68 ret = syscall(__NR_get_thread_area,info);
69 if (ret < 0) {
70 ret = -errno;
71 }
72 return ret;
73}
74
75#endif /* UML_CONFIG_MODE_TT */