properly access mcontext_t program counter in cancellation handler
[oweals/musl.git] / arch / x86_64 / pthread_arch.h
index 29e4590c16601909b9452eb6440a7374dad6498c..c61509cf3e37e4c7f839dfdc53e530311018c0e1 100644 (file)
@@ -7,4 +7,4 @@ static inline struct pthread *__pthread_self()
 
 #define TP_ADJ(p) (p)
 
-#define CANCEL_REG_IP 16
+#define MC_PC gregs[REG_RIP]