xref: /aosp_15_r20/external/musl/arch/i386/pthread_arch.h (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)

__get_tp()1 static inline uintptr_t __get_tp()
2 {
3 	uintptr_t tp;
4 	__asm__ ("movl %%gs:0,%0" : "=r" (tp) );
5 	return tp;
6 }
7 
8 #define MC_PC gregs[REG_EIP]
9