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

#define MC_PC regs.pc