Commit 877f8c82 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: simplify sys_gettid

It fix compilation on x32
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2c978d84
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <linux/unistd.h>
#include <time.h> #include <time.h>
#include "zdtmtst.h" #include "zdtmtst.h"
...@@ -13,15 +14,7 @@ ...@@ -13,15 +14,7 @@
static long sys_gettid(void) static long sys_gettid(void)
{ {
long ret; return syscall(__NR_gettid);
asm volatile("movl $186, %%eax \n"
"syscall \n"
"movq %%rax, %0 \n"
: "=r"(ret)
:
: "rax", "memory");
return ret;
} }
void task_waiter_init(task_waiter_t *t) void task_waiter_init(task_waiter_t *t)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment