summaryrefslogtreecommitdiff
path: root/arch/mips/pthread_arch.h
blob: 60296fd669c3f91c4951540ece0a1a6e1e17138a (plain)
1
2
3
4
5
6
7
8
static inline struct pthread *__pthread_self()
{
	struct pthread *self;
	__asm__ __volatile__ (".word 0x7c03e83b" : "=v" (self) );
	return self;
}

#define CANCEL_REG_IP 3