diff options
Diffstat (limited to 'arch/um/os-Linux/tls.c')
-rw-r--r-- | arch/um/os-Linux/tls.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/um/os-Linux/tls.c b/arch/um/os-Linux/tls.c index 9cb09a45546b..a2de2580b8af 100644 --- a/arch/um/os-Linux/tls.c +++ b/arch/um/os-Linux/tls.c | |||
@@ -1,5 +1,6 @@ | |||
1 | #include <errno.h> | 1 | #include <errno.h> |
2 | #include <sys/ptrace.h> | 2 | #include <sys/ptrace.h> |
3 | #include <sys/syscall.h> | ||
3 | #include <asm/ldt.h> | 4 | #include <asm/ldt.h> |
4 | #include "sysdep/tls.h" | 5 | #include "sysdep/tls.h" |
5 | #include "uml-config.h" | 6 | #include "uml-config.h" |
@@ -48,14 +49,11 @@ int os_get_thread_area(user_desc_t *info, int pid) | |||
48 | #ifdef UML_CONFIG_MODE_TT | 49 | #ifdef UML_CONFIG_MODE_TT |
49 | #include "linux/unistd.h" | 50 | #include "linux/unistd.h" |
50 | 51 | ||
51 | static _syscall1(int, get_thread_area, user_desc_t *, u_info); | ||
52 | static _syscall1(int, set_thread_area, user_desc_t *, u_info); | ||
53 | |||
54 | int do_set_thread_area_tt(user_desc_t *info) | 52 | int do_set_thread_area_tt(user_desc_t *info) |
55 | { | 53 | { |
56 | int ret; | 54 | int ret; |
57 | 55 | ||
58 | ret = set_thread_area(info); | 56 | ret = syscall(__NR_set_thread_area,info); |
59 | if (ret < 0) { | 57 | if (ret < 0) { |
60 | ret = -errno; | 58 | ret = -errno; |
61 | } | 59 | } |
@@ -66,7 +64,7 @@ int do_get_thread_area_tt(user_desc_t *info) | |||
66 | { | 64 | { |
67 | int ret; | 65 | int ret; |
68 | 66 | ||
69 | ret = get_thread_area(info); | 67 | ret = syscall(__NR_get_thread_area,info); |
70 | if (ret < 0) { | 68 | if (ret < 0) { |
71 | ret = -errno; | 69 | ret = -errno; |
72 | } | 70 | } |