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

#define TP_ADJ(p) (p)

#define MC_PC regs.pc