mirror of
git://git.musl-libc.org/musl
synced 2024-12-13 02:05:50 +00:00
ea71a9004e
the only part of TP_ADJ that was not uniquely determined by TLS_ABOVE_TP was the 0x7000 adjustment used mainly on mips and powerpc variants.
13 lines
202 B
C
13 lines
202 B
C
static inline struct pthread *__pthread_self()
|
|
{
|
|
struct pthread *self;
|
|
__asm__ (
|
|
"ear %0, %%a0\n"
|
|
"sllg %0, %0, 32\n"
|
|
"ear %0, %%a1\n"
|
|
: "=r"(self));
|
|
return self;
|
|
}
|
|
|
|
#define MC_PC psw.addr
|