about summary refs log tree commit diff
path: root/arch/i386/pthread_arch.h
blob: 155b484732c4a2e5aa496ca8bda23d27ce0d2957 (plain) (blame)
1
2
3
4
5
6
static inline struct pthread *__pthread_self()
{
	struct pthread *self;
	__asm__ ("movl %%gs:0,%0" : "=r" (self) );
	return self;
}