xref: /third_party/musl/arch/riscv32/pthread_arch.h (revision 570af302)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/arch/riscv32/
1570af302Sopenharmony_cistatic inline uintptr_t __get_tp()
2570af302Sopenharmony_ci{
3570af302Sopenharmony_ci	uintptr_t tp;
4570af302Sopenharmony_ci	__asm__ __volatile__("mv %0, tp" : "=r"(tp));
5570af302Sopenharmony_ci	return tp;
6570af302Sopenharmony_ci}
7570af302Sopenharmony_ci
8570af302Sopenharmony_ci#define TLS_ABOVE_TP
9570af302Sopenharmony_ci#define GAP_ABOVE_TP 0
10570af302Sopenharmony_ci
11570af302Sopenharmony_ci#define DTP_OFFSET 0x800
12570af302Sopenharmony_ci
13570af302Sopenharmony_ci#define MC_PC __gregs[0]
14

Indexes created Thu Nov 07 10:32:03 CST 2024