Debian Codegraph @

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

raw
1 static inline uintptr_t __get_tp();
2
3 #ifndef __CCGO__
4 static inline uintptr_t __get_tp()
5 {
6 uintptr_t tp;
7 __asm__ __volatile__("mv %0, tp" : "=r"(tp));
8 return tp;
9 }
10 #endif
11
12 #define TLS_ABOVE_TP
13 #define GAP_ABOVE_TP 0
14
15 #define DTP_OFFSET 0x800
16
17 #define MC_PC __gregs[0]