1 #if defined(TRUSTY_USERSPACE)
__pthread_self()2 static inline struct pthread *__pthread_self()
3 {
4 	char *self;
5 	__asm__ ("mrs %0,tpidr_el0" : "=r"(self));
6 	return (void*)(self - sizeof(struct pthread));
7 }
8 #endif
9 
10 #define TLS_ABOVE_TP
11 #define GAP_ABOVE_TP 16
12 #define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread))
13 
14 #define MC_PC pc
15