diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-10 07:39:55 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-10 07:39:55 +0000 |
commit | c2e5e08573cd001c4f57f6c0b1c5f7708c6eca6d (patch) | |
tree | ef6b894ff829b65aa36338e66796e34f26a09415 /nptl/sysdeps/x86_64 | |
parent | cd4b2a553a5e0fa51f2ad74166b12820316ab66e (diff) | |
download | glibc-c2e5e08573cd001c4f57f6c0b1c5f7708c6eca6d.tar glibc-c2e5e08573cd001c4f57f6c0b1c5f7708c6eca6d.tar.gz glibc-c2e5e08573cd001c4f57f6c0b1c5f7708c6eca6d.tar.bz2 glibc-c2e5e08573cd001c4f57f6c0b1c5f7708c6eca6d.zip |
Update.
* sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
leftovers from the ia32 code.
* sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
memory load.
(clear_once_control): Don't load %esi.
* sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
handling.
* sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
Diffstat (limited to 'nptl/sysdeps/x86_64')
-rw-r--r-- | nptl/sysdeps/x86_64/tls.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/nptl/sysdeps/x86_64/tls.h b/nptl/sysdeps/x86_64/tls.h index 7a6394415c..66e878ef0b 100644 --- a/nptl/sysdeps/x86_64/tls.h +++ b/nptl/sysdeps/x86_64/tls.h @@ -60,30 +60,6 @@ typedef struct /* Get system call information. */ # include <sysdep.h> -/* The old way: using LDT. */ - -/* Structure passed to `modify_ldt', 'set_thread_area', and 'clone' calls. */ -struct user_desc -{ - unsigned int entry_number; - unsigned long int base_addr; - unsigned int limit; - unsigned int seg_32bit:1; - unsigned int contents:2; - unsigned int read_exec_only:1; - unsigned int limit_in_pages:1; - unsigned int seg_not_present:1; - unsigned int useable:1; - unsigned int empty:25; -}; - -/* Initializing bit fields is slow. We speed it up by using a union. */ -union user_desc_init -{ - struct user_desc desc; - unsigned int vals[4]; -}; - /* Get the thread descriptor definition. */ # include <nptl/descr.h> @@ -127,20 +103,6 @@ union user_desc_init __asm ("movl %0, %%fs" :: "q" (val)) -# ifndef __NR_set_thread_area -# define __NR_set_thread_area 205 -# endif -# ifndef TLS_FLAG_WRITABLE -# define TLS_FLAG_WRITABLE 0x00000001 -# endif - -// XXX Enable for the real world. -#if 0 -# ifndef __ASSUME_SET_THREAD_AREA -# error "we need set_thread_area" -# endif -#endif - /* Code to initially initialize the thread pointer. This might need special attention since 'errno' is not yet available and if the operation can cause a failure 'errno' must not be touched. |