Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / arch / um / os-Linux / tls.c
index 3385784..9cb09a4 100644 (file)
@@ -1,8 +1,6 @@
 #include <errno.h>
 #include <sys/ptrace.h>
-#include <sys/syscall.h>
 #include <asm/ldt.h>
-#include <unistd.h>
 #include "sysdep/tls.h"
 #include "uml-config.h"
 
@@ -50,11 +48,14 @@ int os_get_thread_area(user_desc_t *info, int pid)
 #ifdef UML_CONFIG_MODE_TT
 #include "linux/unistd.h"
 
+static _syscall1(int, get_thread_area, user_desc_t *, u_info);
+static _syscall1(int, set_thread_area, user_desc_t *, u_info);
+
 int do_set_thread_area_tt(user_desc_t *info)
 {
        int ret;
 
-       ret = syscall(__NR_set_thread_area, info);
+       ret = set_thread_area(info);
        if (ret < 0) {
                ret = -errno;
        }
@@ -65,7 +66,7 @@ int do_get_thread_area_tt(user_desc_t *info)
 {
        int ret;
 
-       ret = syscall(__NR_get_thread_area, info);
+       ret = get_thread_area(info);
        if (ret < 0) {
                ret = -errno;
        }