summaryrefslogtreecommitdiff
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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/pthread_arch.h b/arch/mips/pthread_arch.h
new file mode 100644
index 00000000..60296fd6
--- /dev/null
+++ b/arch/mips/pthread_arch.h
@@ -0,0 +1,8 @@
+static inline struct pthread *__pthread_self()
+{
+ struct pthread *self;
+ __asm__ __volatile__ (".word 0x7c03e83b" : "=v" (self) );
+ return self;
+}
+
+#define CANCEL_REG_IP 3