]> git.proxmox.com Git - wasi-libc.git/blame - libc-top-half/musl/arch/or1k/pthread_arch.h
Update to musl 1.2.2.
[wasi-libc.git] / libc-top-half / musl / arch / or1k / pthread_arch.h
CommitLineData
322bd4ff 1static inline uintptr_t __get_tp()
320054e8
DG
2{
3#ifdef __clang__
322bd4ff 4 uintptr_t tp;
320054e8
DG
5 __asm__ ("l.ori %0, r10, 0" : "=r" (tp) );
6#else
322bd4ff 7 register uintptr_t tp __asm__("r10");
320054e8
DG
8 __asm__ ("" : "=r" (tp) );
9#endif
322bd4ff 10 return tp;
320054e8
DG
11}
12
13#define TLS_ABOVE_TP
14#define GAP_ABOVE_TP 0
320054e8
DG
15
16#define MC_PC regs.pc