2002-02-11 02:58:00 +08: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 09:49:22 +08:00
|
|
|
/* XXX Until we get compiler support we don't need declarations. */
|
|
|
|
#define COMMON_INT_DECL(x)
|
2002-02-11 02:58:00 +08: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 15:42:20 +08:00
|
|
|
".balign 4\n" \
|
2002-02-11 02:58:00 +08:00
|
|
|
#x ":\t.long 0\n\t" \
|
2002-02-11 09:49:22 +08:00
|
|
|
".size " #x ",4\n\t" \
|
2002-02-11 02:58:00 +08:00
|
|
|
".previous")
|
2002-02-11 09:49:22 +08:00
|
|
|
/* XXX Until we get compiler support we don't need declarations. */
|
|
|
|
#define VAR_INT_DECL(x)
|
2002-02-11 02:58:00 +08:00
|
|
|
|
2005-03-13 17:09:05 +08:00
|
|
|
#include_next <tls-macros.h>
|
2002-02-11 02:58:00 +08:00
|
|
|
|
|
|
|
/* XXX Each architecture must have its own asm for now. */
|
2012-07-17 19:30:58 +08:00
|
|
|
#if !defined TLS_LE || !defined TLS_IE \
|
2005-03-28 04:06:13 +08:00
|
|
|
|| !defined TLS_LD || !defined TLS_GD
|
2002-02-11 02:58:00 +08:00
|
|
|
# error "No support for this architecture so far."
|
|
|
|
#endif
|