projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
microblaze port
[musl]
/
arch
/
microblaze
/
pthread_arch.h
diff --git a/arch/microblaze/pthread_arch.h
b/arch/microblaze/pthread_arch.h
new file mode 100644
(file)
index 0000000..
6c0ab5a
--- /dev/null
+++ b/
arch/microblaze/pthread_arch.h
@@ -0,0
+1,8
@@
+static inline struct pthread *__pthread_self()
+{
+ struct pthread *self;
+ __asm__ __volatile__ ("ori %0, r21, 0" : "=r" (self) );
+ return self;
+}
+
+#define CANCEL_REG_IP 32