]> git.proxmox.com Git - wasi-libc.git/blame - libc-top-half/musl/arch/powerpc64/pthread_arch.h
Update to musl 1.2.2.
[wasi-libc.git] / libc-top-half / musl / arch / powerpc64 / pthread_arch.h
CommitLineData
322bd4ff 1static inline uintptr_t __get_tp()
320054e8 2{
322bd4ff 3 register uintptr_t tp __asm__("r13");
320054e8 4 __asm__ ("" : "=r" (tp) );
322bd4ff 5 return tp;
320054e8
DG
6}
7
8#define TLS_ABOVE_TP
9#define GAP_ABOVE_TP 0
320054e8 10
322bd4ff 11#define TP_OFFSET 0x7000
320054e8
DG
12#define DTP_OFFSET 0x8000
13
14// the kernel calls the ip "nip", it's the first saved value after the 32
15// GPRs.
16#define MC_PC gp_regs[32]