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

#define MC_PC gregs[REG_RIP]

#define CANARY canary2

#define tls_mod_off_t unsigned long long