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

#define MC_PC gregs[REG_RIP]