1 /* TLS Access Macros for HP PARISC Linux */
3 /* HPPA Local Exec TLS access. */
8 " mfctl %%cr27, %1\n" \
9 " addil LR'" #x "-$tls_leoff$, %1\n" \
10 " ldo RR'" #x "-$tls_leoff$(%%r1), %0\n" \
11 : "=r" (__result), "=r" (__tmp) \
17 /* HPPA Initial Exec TLS access. */
21 unsigned long __tmp, __tmp2; \
23 " mfctl %%cr27, %1\n" \
24 " addil LT'" #x "-$tls_ieoff$, %%r19\n" \
25 " ldw RT'" #x "-$tls_ieoff$(%%r1), %2\n" \
27 : "=r" (__result), "=r" (__tmp), "=r" (__tmp2) \
35 unsigned long __tmp, __tmp2; \
37 " mfctl %%cr27, %1\n" \
38 " addil LR'" #x "-$tls_ieoff$, %%r27\n" \
39 " ldw RR'" #x "-$tls_ieoff$(%%r1), %2\n" \
41 : "=r" (__result), "=r" (__tmp), "=r" (__tmp2) \
49 /* HPPA Local Dynamic TLS access. */
53 " copy %%r19, %%r4\n" \
54 " addil LT'" #x "-$tls_ldidx$, %%r19\n" \
55 " bl __tls_get_addr, %%r2\n" \
56 " ldo RT'" #x "-$tls_ldidx$(%%r1), %%r26\n" \
57 " addil LR'" #x "-$tls_dtpoff$, %%r28\n" \
58 " ldo RR'" #x "-$tls_dtpoff$(%%r1), %0\n" \
59 " copy %%r4, %%r19\n" \
62 : "r1", "r2", "r4", "r20", "r21", "r22", "r23", "r24", \
63 "r25", "r26", "r28", "r29", "r31" ); \
70 " addil LR'" #x "-$tls_ldidx$, %%r27\n" \
71 " bl __tls_get_addr, %%r2\n" \
72 " ldo RR'" #x "-$tls_ldidx$(%%r1), %%r26\n" \
73 " addil LR'" #x "-$tls_dtpoff$, %%r28\n" \
74 " ldo RR'" #x "-$tls_dtpoff$(%%r1), %0\n" \
77 : "r1", "r2", "r20", "r21", "r22", "r23", "r24", \
78 "r25", "r26", "r28", "r29", "r31" ); \
83 /* HPPA General Dynamic TLS access. */
88 " copy %%r19, %%r4\n" \
89 " addil LT'" #x "-$tls_gdidx$, %%r19\n" \
90 " bl __tls_get_addr, %%r2\n" \
91 " ldo RT'" #x "-$tls_gdidx$(%%r1), %%r26\n" \
93 " copy %%r4, %%r19\n" \
96 : "r1", "r2", "r4", "r20", "r21", "r22", "r23", "r24", \
97 "r25", "r26", "r28", "r29", "r31" ); \
104 " addil LR'" #x "-$tls_gdidx$, %%r27\n" \
105 " bl __tls_get_addr, %%r2\n" \
106 " ldo RR'" #x "-$tls_gdidx$(%%r1), %%r26\n" \
107 " copy %%r28, %0\n" \
110 : "r1", "r2", "r20", "r21", "r22", "r23", "r24", \
111 "r25", "r26", "r28", "r29", "r31" ); \