summaryrefslogtreecommitdiff
path: root/arch/ppc/pthread_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/pthread_arch.h')
-rw-r--r--arch/ppc/pthread_arch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/ppc/pthread_arch.h b/arch/ppc/pthread_arch.h
new file mode 100644
index 00000000..5f96f2b0
--- /dev/null
+++ b/arch/ppc/pthread_arch.h
@@ -0,0 +1,6 @@
+typedef pthread_t (*__pthread_self_func_t)(void) __attribute__((const));
+
+#define __pthread_self ((__pthread_self_func_t)0xffff0fe0)
+
+#define CANCEL_REG_SP 16
+#define CANCEL_REG_IP 18