summaryrefslogtreecommitdiff
path: root/arch/powerpc/pthread_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/pthread_arch.h')
-rw-r--r--arch/powerpc/pthread_arch.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/pthread_arch.h b/arch/powerpc/pthread_arch.h
index bb7405d1..7c5c4fad 100644
--- a/arch/powerpc/pthread_arch.h
+++ b/arch/powerpc/pthread_arch.h
@@ -15,9 +15,8 @@ static inline struct pthread *__pthread_self()
#define DTP_OFFSET 0x8000
-// offset of the PC register in mcontext_t, divided by the system wordsize
// the kernel calls the ip "nip", it's the first saved value after the 32
// GPRs.
-#define CANCEL_REG_IP 32
+#define MC_PC gregs[32]
#define CANARY canary_at_end