about summary refs log tree commit diff
path: root/arch/arm/pthread_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/pthread_arch.h')
-rw-r--r--arch/arm/pthread_arch.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/pthread_arch.h b/arch/arm/pthread_arch.h
new file mode 100644
index 00000000..c6b97368
--- /dev/null
+++ b/arch/arm/pthread_arch.h
@@ -0,0 +1,7 @@
+static inline struct pthread *__pthread_self()
+{
+	return ((void *(*)(void))0xffff0fe0)();
+}
+
+#define CANCEL_REG_SP 16
+#define CANCEL_REG_IP 18