2002-02-10 19:58:00 +01:00
|
|
|
/* Macros to support TLS testing in times of missing compiler support. */
|
|
|
|
|
|
|
|
#define COMMON_INT_DEF(x) \
|
|
|
|
asm (".tls_common " #x ",4,4")
|
2002-02-11 02:49:22 +01:00
|
|
|
/* XXX Until we get compiler support we don't need declarations. */
|
|
|
|
#define COMMON_INT_DECL(x)
|
2002-02-10 19:58:00 +01:00
|
|
|
|
|
|
|
/* XXX This definition will probably be machine specific, too. */
|
|
|
|
#define VAR_INT_DEF(x) \
|
|
|
|
asm (".section .tdata\n\t" \
|
|
|
|
".globl " #x "\n" \
|
2003-07-31 09:42:20 +02:00
|
|
|
".balign 4\n" \
|
2002-02-10 19:58:00 +01:00
|
|
|
#x ":\t.long 0\n\t" \
|
2002-02-11 02:49:22 +01:00
|
|
|
".size " #x ",4\n\t" \
|
2002-02-10 19:58:00 +01:00
|
|
|
".previous")
|
2002-02-11 02:49:22 +01:00
|
|
|
/* XXX Until we get compiler support we don't need declarations. */
|
|
|
|
#define VAR_INT_DECL(x)
|
2002-02-10 19:58:00 +01:00
|
|
|
|
2005-03-13 10:09:05 +01:00
|
|
|
#include_next <tls-macros.h>
|
2002-02-10 19:58:00 +01:00
|
|
|
|
|
|
|
/* XXX Each architecture must have its own asm for now. */
|
2012-07-17 13:30:58 +02:00
|
|
|
#if !defined TLS_LE || !defined TLS_IE \
|
2005-03-27 22:06:13 +02:00
|
|
|
|| !defined TLS_LD || !defined TLS_GD
|
2002-02-10 19:58:00 +01:00
|
|
|
# error "No support for this architecture so far."
|
|
|
|
#endif
|