From 8e96ae1a08f419829221ab7e31291606754f0a69 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 4 Nov 2002 09:18:22 +0000 Subject: Update. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2002-11-04 Ulrich Drepper * manual/examples/dir.c: Don't include . * manual/examples/select.c: Include for TEMP_FAILURE_RETRY. Reported by Frédéric Delanoy . 2002-11-02 H.J. Lu * stdio-common/reg-printf.c: Include . --- linuxthreads/ChangeLog | 6 ++++++ linuxthreads/sysdeps/i386/useldt.h | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'linuxthreads') diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 1e06904..8569a37 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,9 @@ +2002-11-04 Ulrich Drepper + + * sysdeps/i386/useldt.h [PIC] (USETLS_LOAD_EBX): Use correct input + register number. + (DO_SET_THREAD_AREA): Mark asm output specifiers correctly. + 2002-10-22 Jakub Jelinek * manager.c (pthread_start_thread): Call __uselocale even diff --git a/linuxthreads/sysdeps/i386/useldt.h b/linuxthreads/sysdeps/i386/useldt.h index 16aee99..91eb6e0 100644 --- a/linuxthreads/sysdeps/i386/useldt.h +++ b/linuxthreads/sysdeps/i386/useldt.h @@ -76,7 +76,7 @@ extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t); #ifdef __PIC__ # define USETLS_EBX_ARG "r" -# define USETLS_LOAD_EBX "xchgl %3, %%ebx\n\t" +# define USETLS_LOAD_EBX "xchgl %1, %%ebx\n\t" #else # define USETLS_EBX_ARG "b" # define USETLS_LOAD_EBX @@ -108,7 +108,7 @@ extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t); "movl %2, %%eax\n\t" \ "int $0x80\n\t" \ USETLS_LOAD_EBX \ - : "&a" (__result) \ + : "=&a" (__result) \ : USETLS_EBX_ARG (&ldt_entry), "i" (__NR_set_thread_area)); \ if (__result == 0) \ asm ("movw %w0, %%gs" :: "q" (__gs)); \ @@ -126,7 +126,7 @@ extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t); "movl %2, %%eax\n\t" \ "int $0x80\n\t" \ USETLS_LOAD_EBX \ - : "&a" (__result) \ + : "=&a" (__result) \ : USETLS_EBX_ARG (&ldt_entry), "i" (__NR_set_thread_area)); \ if (__result == 0) \ { \ -- cgit v1.1