projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
initial version of mips (o32) port, based on work by Richard Pennington (rdp)
[musl]
/
arch
/
mips
/
pthread_arch.h
diff --git a/arch/mips/pthread_arch.h
b/arch/mips/pthread_arch.h
new file mode 100644
(file)
index 0000000..
60296fd
--- /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