3 #include <sys/ptrace.h>
4 #include <sys/syscall.h>
6 #include "sysdep/tls.h"
7 #include "uml-config.h"
9 /* TLS support - we basically rely on the host's one.*/
11 #ifndef PTRACE_GET_THREAD_AREA
12 #define PTRACE_GET_THREAD_AREA 25
15 #ifndef PTRACE_SET_THREAD_AREA
16 #define PTRACE_SET_THREAD_AREA 26
19 int os_set_thread_area(user_desc_t *info, int pid)
23 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number,
24 (unsigned long) info);
30 int os_get_thread_area(user_desc_t *info, int pid)
34 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number,
35 (unsigned long) info);