aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps/i386/tls.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-20 11:10:37 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-20 11:10:37 +0000
commit69681bdee0226cef026ab761738373955393422b (patch)
treed104408a000f02c27dcbc06f2855c83e78e6b17e /linuxthreads/sysdeps/i386/tls.h
parentd78ce054e2a3b23fed53f42ea7aa6e1c2ff6d748 (diff)
downloadglibc-69681bdee0226cef026ab761738373955393422b.tar
glibc-69681bdee0226cef026ab761738373955393422b.tar.gz
glibc-69681bdee0226cef026ab761738373955393422b.tar.bz2
glibc-69681bdee0226cef026ab761738373955393422b.zip
Update.
* include/unistd.h: Don't hide _exit.
Diffstat (limited to 'linuxthreads/sysdeps/i386/tls.h')
-rw-r--r--linuxthreads/sysdeps/i386/tls.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/linuxthreads/sysdeps/i386/tls.h b/linuxthreads/sysdeps/i386/tls.h
index 098b11caa0..39b4b63da3 100644
--- a/linuxthreads/sysdeps/i386/tls.h
+++ b/linuxthreads/sysdeps/i386/tls.h
@@ -123,8 +123,8 @@ typedef struct
int result; \
if (!firstcall) \
ldt_entry.entry_number = ({ int _gs; \
- asm ("movw %%gs, %w0" : "=q" (_gs)); \
- (_gs & 0xffff) >> 3; }); \
+ asm ("movl %%gs, %0" : "=q" (_gs)); \
+ _gs >> 3; }); \
asm volatile (TLS_LOAD_EBX \
"int $0x80\n\t" \
TLS_LOAD_EBX \
@@ -164,7 +164,7 @@ typedef struct
__gs = TLS_SETUP_GS_SEGMENT (_descr, firstcall); \
if (__builtin_expect (__gs, 7) != -1) \
{ \
- asm ("movw %w0, %%gs" : : "q" (__gs)); \
+ asm ("movl %0, %%gs" : : "q" (__gs)); \
__gs = 0; \
} \
__gs; \