Debian Codegraph @

internal/overlay/musl/arch/powerpc64/pthread_arch.h

raw
1 static inline uintptr_t __get_tp();
2
3 #ifndef __CCGO__
4 static inline uintptr_t __get_tp()
5 {
6 register uintptr_t tp __asm__("r13");
7 __asm__ ("" : "=r" (tp) );
8 return tp;
9 }
10 #endif
11
12 #define TLS_ABOVE_TP
13 #define GAP_ABOVE_TP 0
14
15 #define TP_OFFSET 0x7000
16 #define DTP_OFFSET 0x8000
17
18 // the kernel calls the ip "nip", it's the first saved value after the 32
19 // GPRs.
20 #define MC_PC gp_regs[32]