summaryrefslogblamecommitdiff
path: root/arch/mips/pthread_arch.h
blob: f75379cf834deb53c02c31c5f28584b75c0e7a44 (plain) (tree)
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-(union {int __i; char __b;}){1}.__b)