summaryrefslogtreecommitdiff
path: root/arch/ppc/pthread_arch.h
diff options
context:
space:
mode:
authorRichard Pennington <rich@pennware.com>2012-11-09 23:32:57 +0100
committerrofl0r <retnyg@gmx.net>2012-11-13 18:15:10 +0100
commit7669d1e334e6b96455eece78da43bf830b93d697 (patch)
tree6649acfaa61ec6780498b55fa8015ca4f7a6cdae /arch/ppc/pthread_arch.h
parent1e717ea3d2a864e00e507f1a70a892c551955f1b (diff)
downloadmusl-7669d1e334e6b96455eece78da43bf830b93d697.tar.gz
import preliminary ppc work by rdp.
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