about summary refs log tree commit diff
path: root/arch/mips/pthread_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/pthread_arch.h')
-rw-r--r--arch/mips/pthread_arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pthread_arch.h b/arch/mips/pthread_arch.h
index 60296fd6..f75379cf 100644
--- a/arch/mips/pthread_arch.h
+++ b/arch/mips/pthread_arch.h
@@ -5,4 +5,4 @@ static inline struct pthread *__pthread_self()
 	return self;
 }
 
-#define CANCEL_REG_IP 3
+#define CANCEL_REG_IP (3-(union {int __i; char __b;}){1}.__b)