From 323272db175204b951f119dae4bd99ef05e20f13 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 7 Jan 2014 22:43:34 +0100 Subject: import vanilla x86_64 code as x32 --- arch/x32/pthread_arch.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/x32/pthread_arch.h (limited to 'arch/x32/pthread_arch.h') diff --git a/arch/x32/pthread_arch.h b/arch/x32/pthread_arch.h new file mode 100644 index 00000000..29e4590c --- /dev/null +++ b/arch/x32/pthread_arch.h @@ -0,0 +1,10 @@ +static inline struct pthread *__pthread_self() +{ + struct pthread *self; + __asm__ __volatile__ ("mov %%fs:0,%0" : "=r" (self) ); + return self; +} + +#define TP_ADJ(p) (p) + +#define CANCEL_REG_IP 16 -- cgit v1.2.1