fix invalid free of duplocale object when malloc has been replaced
[musl.git] / arch / i386 / pthread_arch.h
bloba639c382ac2af5b351adfb2f728264e7ea4f932d
1 static inline uintptr_t __get_tp()
3 uintptr_t tp;
4 __asm__ ("movl %%gs:0,%0" : "=r" (tp) );
5 return tp;
8 #define MC_PC gregs[REG_EIP]