summaryrefslogtreecommitdiff
path: root/arch/x86_64/pthread_arch.h
blob: 836187f5654ea4087c754c512f3543163e3738ff (plain) (blame)
1
2
3
4
5
6
7
8
9
static inline struct pthread *__pthread_self()
{
	struct pthread *self;
	__asm__ __volatile__ ("movq %%fs:0,%0" : "=r" (self) );
	return self;
}

#define CANCEL_REG_SP 15
#define CANCEL_REG_IP 16