projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix excessively slow TLS performance on some mips models
[musl]
/
arch
/
mips
/
pthread_arch.h
diff --git
a/arch/mips/pthread_arch.h
b/arch/mips/pthread_arch.h
index
c45347a
..
376b774
100644
(file)
--- a/
arch/mips/pthread_arch.h
+++ b/
arch/mips/pthread_arch.h
@@
-1,10
+1,9
@@
static inline uintptr_t __get_tp()
{
-#if __mips_isa_rev < 2
register uintptr_t tp __asm__("$3");
+#if __mips_isa_rev < 2
__asm__ (".word 0x7c03e83b" : "=r" (tp) );
#else
- uintptr_t tp;
__asm__ ("rdhwr %0, $29" : "=r" (tp) );
#endif
return tp;