mirror of
https://github.com/ziglang/zig.git
synced 2025-12-08 07:13:08 +00:00
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
14 lines
206 B
C
Vendored
14 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
|