pthread_arch.h (471B)
1 /* tcc-build aarch64 pthread_arch.h replacement. 2 * 3 * Stock musl emits `mrs %0, tpidr_el0` as inline asm with output 4 * operand. tcc 0.9.26's arm64-asm.c phase 1+2 has no operand 5 * constraint plumbing, so route through extern __get_tp implemented 6 * in src/internal/aarch64/get_tp.s. Single-instruction overhead; 7 * inlining is recovered by phase 3 once it lands. */ 8 9 extern unsigned long __get_tp(void); 10 11 #define TLS_ABOVE_TP 12 #define GAP_ABOVE_TP 16 13 14 #define MC_PC pc