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

#define MC_PC gregs[REG_EIP]