1 static inline struct pthread *__pthread_self()
4 __asm__ ("stc gbr,%0" : "=r" (self) );
5 return (struct pthread *) (self - sizeof(struct pthread));
10 #define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread))
15 #define MC_GOT sc_regs[12]
16 #define CANCEL_GOT (*(uintptr_t *)((char *)__syscall_cp_asm+sizeof(uintptr_t)))