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

#define CANCEL_REG_IP 32