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 @@
#include <stdarg.h>
#include <errno.h>
#include <unistd.h>
#include <linux/unistd.h>
#include <time.h>
#include "zdtmtst.h"
......@@ -13,15 +14,7 @@
static long sys_gettid(void)
{
long ret;
asm volatile("movl $186, %%eax \n"
"syscall \n"
"movq %%rax, %0 \n"
: "=r"(ret)
:
: "rax", "memory");
return ret;
return syscall(__NR_gettid);
}
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