projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not use _Noreturn for a function pointer in dynamic linker
[musl]
/
arch
/
powerpc
/
pthread_arch.h
diff --git
a/arch/powerpc/pthread_arch.h
b/arch/powerpc/pthread_arch.h
index
7c5c4fa
..
ae0f28d
100644
(file)
--- a/
arch/powerpc/pthread_arch.h
+++ b/
arch/powerpc/pthread_arch.h
@@
-1,16
+1,12
@@
static inline struct pthread *__pthread_self()
{
static inline struct pthread *__pthread_self()
{
-#ifdef __clang__
- char *tp;
- __asm__ __volatile__ ("mr %0, 2" : "=r"(tp) : : );
-#else
register char *tp __asm__("r2");
register char *tp __asm__("r2");
- __asm__ __volatile__ ("" : "=r" (tp) );
-#endif
+ __asm__ ("" : "=r" (tp) );
return (pthread_t)(tp - 0x7000 - sizeof(struct pthread));
}
#define TLS_ABOVE_TP
return (pthread_t)(tp - 0x7000 - sizeof(struct pthread));
}
#define TLS_ABOVE_TP
+#define GAP_ABOVE_TP 0
#define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread) + 0x7000)
#define DTP_OFFSET 0x8000
#define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread) + 0x7000)
#define DTP_OFFSET 0x8000