properly access mcontext_t program counter in cancellation handler
[oweals/musl.git] / arch / i386 / pthread_arch.h
index 1c06c7641df683b9ffe14c0e91f0b1da192abbe0..7f38a56289032a3026a1580a798118e7214ae3ac 100644 (file)
@@ -7,4 +7,4 @@ static inline struct pthread *__pthread_self()
 
 #define TP_ADJ(p) (p)
 
-#define CANCEL_REG_IP 14
+#define MC_PC gregs[REG_EIP]