mirror of
git://git.musl-libc.org/musl
synced 2025-02-09 07:27:09 +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.
9 lines
155 B
C
9 lines
155 B
C
static inline struct pthread *__pthread_self()
|
|
{
|
|
struct pthread *self;
|
|
__asm__ ("ori %0, r21, 0" : "=r" (self) );
|
|
return self;
|
|
}
|
|
|
|
#define MC_PC regs.pc
|