summaryrefslogtreecommitdiff
path: root/arch/microblaze/pthread_arch.h
blob: ff26624efc328a647f65d9a64b90d1e9f1bf577a (plain)
1
2
3
4
5
6
7
8
static inline uintptr_t __get_tp()
{
	uintptr_t tp;
	__asm__ ("ori %0, r21, 0" : "=r" (tp) );
	return tp;
}

#define MC_PC regs.pc