dns response handling: don't treat too many addresses as an error
[musl] / arch / x86_64 / pthread_arch.h
index 77c8387..c8c63f2 100644 (file)
@@ -1,10 +1,8 @@
-static inline struct pthread *__pthread_self()
+static inline uintptr_t __get_tp()
 {
-       struct pthread *self;
-       __asm__ __volatile__ ("movq %%fs:0,%0" : "=r" (self) );
-       return self;
+       uintptr_t tp;
+       __asm__ ("mov %%fs:0,%0" : "=r" (tp) );
+       return tp;
 }
 
-#define TP_ADJ(p) (p)
-
-#define CANCEL_REG_IP 16
+#define MC_PC gregs[REG_RIP]