zig/lib/libc/musl/arch/hexagon/pthread_arch.h
Alex Rønne Petersen 3df67dc414
musl: Add hexagon-linux-musl sources.
This is from Qualcomm's fork: https://github.com/quic/musl

I maintain a fork of musl where I rebase Qualcomm's changes on top of the latest
musl release, which I then use as the basis for musl updates in Zig. My fork can
be found here: https://github.com/alexrp/musl/tree/hexagon
2025-04-11 02:28:35 +02:00

13 lines
206 B
C
Vendored

// Hexagon supports variant 2 TLS.
static inline uintptr_t __get_tp()
{
uintptr_t tp;
__asm__ ( "%0 = ugp" : "=r"(tp));
return tp;
}
#define TP_ADJ(p) (p)
#define CANCEL_REG_IP 43
#define MC_PC pc