1 static inline struct pthread *__pthread_self()
4 register char *tp __asm__("$3");
5 __asm__ __volatile__ (".word 0x7c03e83b" : "=r" (tp) );
8 __asm__ __volatile__ ("rdhwr %0, $29" : "=r" (tp) );
10 return (pthread_t)(tp - 0x7000 - sizeof(struct pthread));
14 #define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread) + 0x7000)
16 #define DTP_OFFSET 0x8000