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

#define TP_ADJ(p) (p)

#define MC_PC regs.pc