]>
Commit | Line | Data |
---|---|---|
2cef4257 UD |
1 | /* Macros to support TLS testing in times of missing compiler support. */ |
2 | ||
3 | #define COMMON_INT_DEF(x) \ | |
4 | asm (".tls_common " #x ",4,4") | |
7331ca4d UD |
5 | /* XXX Until we get compiler support we don't need declarations. */ |
6 | #define COMMON_INT_DECL(x) | |
2cef4257 UD |
7 | |
8 | /* XXX This definition will probably be machine specific, too. */ | |
9 | #define VAR_INT_DEF(x) \ | |
10 | asm (".section .tdata\n\t" \ | |
11 | ".globl " #x "\n" \ | |
adc12574 | 12 | ".balign 4\n" \ |
2cef4257 | 13 | #x ":\t.long 0\n\t" \ |
7331ca4d | 14 | ".size " #x ",4\n\t" \ |
2cef4257 | 15 | ".previous") |
7331ca4d UD |
16 | /* XXX Until we get compiler support we don't need declarations. */ |
17 | #define VAR_INT_DECL(x) | |
2cef4257 | 18 | |
af81020e | 19 | #include_next <tls-macros.h> |
2cef4257 UD |
20 | |
21 | /* XXX Each architecture must have its own asm for now. */ | |
cfc82fd8 | 22 | #if !defined TLS_LE || !defined TLS_IE \ |
729cee49 | 23 | || !defined TLS_LD || !defined TLS_GD |
2cef4257 UD |
24 | # error "No support for this architecture so far." |
25 | #endif |