diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-12-28 22:19:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-12-28 22:19:04 +0000 |
commit | 3b7ed8712599efbecd92f4d68398fb7a593aef75 (patch) | |
tree | d8dea4cd2be3b50dd7706387988c3ddace21dd55 /nptl/sysdeps/i386 | |
parent | b25a62a8a36541b12e8452224bb2e71f83ade815 (diff) | |
download | glibc-3b7ed8712599efbecd92f4d68398fb7a593aef75.tar.gz glibc-3b7ed8712599efbecd92f4d68398fb7a593aef75.tar.xz glibc-3b7ed8712599efbecd92f4d68398fb7a593aef75.zip |
Update.
2002-12-28 Ulrich Drepper <drepper@redhat.com> * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
Diffstat (limited to 'nptl/sysdeps/i386')
-rw-r--r-- | nptl/sysdeps/i386/Makefile | 3 | ||||
-rw-r--r-- | nptl/sysdeps/i386/tcb-offsets.sym | 5 | ||||
-rw-r--r-- | nptl/sysdeps/i386/tls.h | 12 |
3 files changed, 11 insertions, 9 deletions
diff --git a/nptl/sysdeps/i386/Makefile b/nptl/sysdeps/i386/Makefile new file mode 100644 index 0000000000..81bddf688c --- /dev/null +++ b/nptl/sysdeps/i386/Makefile @@ -0,0 +1,3 @@ +ifeq ($(subdir),csu) +gen-as-const-headers += tcb-offsets.sym +endif diff --git a/nptl/sysdeps/i386/tcb-offsets.sym b/nptl/sysdeps/i386/tcb-offsets.sym new file mode 100644 index 0000000000..d1d0a10ee2 --- /dev/null +++ b/nptl/sysdeps/i386/tcb-offsets.sym @@ -0,0 +1,5 @@ +#include <sysdep.h> +#include <tls.h> + +MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads) +SYSINFO_OFFSET offsetof (tcbhead_t, sysinfo) diff --git a/nptl/sysdeps/i386/tls.h b/nptl/sysdeps/i386/tls.h index 4f8ddb2d28..f830db78dc 100644 --- a/nptl/sysdeps/i386/tls.h +++ b/nptl/sysdeps/i386/tls.h @@ -46,6 +46,9 @@ typedef struct uintptr_t sysinfo; list_t list; } tcbhead_t; + +#else /* __ASSEMBLER__ */ +# include <tcb-offsets.h> #endif @@ -61,15 +64,6 @@ typedef struct the SSE memory functions. */ #define STACK_ALIGN 16 -/* Offset of the MULTIPLE_THREADS element in tcbhead_t. */ -#define MULTIPLE_THREADS_OFFSET 12 - -#ifdef NEED_DL_SYSINFO -/* Offset of the SYSINFO element in tcbhead_t. */ -# define SYSINFO_OFFSET 16 -#endif - - #ifndef __ASSEMBLER__ /* Get system call information. */ # include <sysdep.h> |