summaryrefslogtreecommitdiff
path: root/arch/x32/pthread_arch.h
blob: fa452839176965fdd0a87ce0d6156b7f539ee5a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
static inline struct pthread *__pthread_self()
{
	struct pthread *self;
	__asm__ ("mov %%fs:0,%0" : "=r" (self) );
	return self;
}

#define MC_PC gregs[REG_RIP]

#define CANARY canary2

#define tls_mod_off_t unsigned long long