diff options
Diffstat (limited to 'arch/um/os-Linux/sys-i386/tls.c')
-rw-r--r-- | arch/um/os-Linux/sys-i386/tls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/um/os-Linux/sys-i386/tls.c b/arch/um/os-Linux/sys-i386/tls.c index 120abbe4e3ce..6e945ab45843 100644 --- a/arch/um/os-Linux/sys-i386/tls.c +++ b/arch/um/os-Linux/sys-i386/tls.c | |||
@@ -1,10 +1,9 @@ | |||
1 | #include <errno.h> | 1 | #include <errno.h> |
2 | #include <linux/unistd.h> | 2 | #include <linux/unistd.h> |
3 | #include <sys/syscall.h> | ||
3 | #include "sysdep/tls.h" | 4 | #include "sysdep/tls.h" |
4 | #include "user_util.h" | 5 | #include "user_util.h" |
5 | 6 | ||
6 | static _syscall1(int, get_thread_area, user_desc_t *, u_info); | ||
7 | |||
8 | /* Checks whether host supports TLS, and sets *tls_min according to the value | 7 | /* Checks whether host supports TLS, and sets *tls_min according to the value |
9 | * valid on the host. | 8 | * valid on the host. |
10 | * i386 host have it == 6; x86_64 host have it == 12, for i386 emulation. */ | 9 | * i386 host have it == 6; x86_64 host have it == 12, for i386 emulation. */ |
@@ -17,7 +16,7 @@ void check_host_supports_tls(int *supports_tls, int *tls_min) { | |||
17 | user_desc_t info; | 16 | user_desc_t info; |
18 | info.entry_number = val[i]; | 17 | info.entry_number = val[i]; |
19 | 18 | ||
20 | if (get_thread_area(&info) == 0) { | 19 | if (syscall(__NR_get_thread_area, &info) == 0) { |
21 | *tls_min = val[i]; | 20 | *tls_min = val[i]; |
22 | *supports_tls = 1; | 21 | *supports_tls = 1; |
23 | return; | 22 | return; |