projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66437ab
)
(DO_SET_THREAD_AREA): Use correct shift when computing index from %gs value.
author
Ulrich Drepper
<drepper@redhat.com>
Mon, 19 Aug 2002 22:21:32 +0000
(22:21 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Mon, 19 Aug 2002 22:21:32 +0000
(22:21 +0000)
linuxthreads/sysdeps/i386/useldt.h
patch
|
blob
|
history
diff --git
a/linuxthreads/sysdeps/i386/useldt.h
b/linuxthreads/sysdeps/i386/useldt.h
index 49471d61fa8d08c8239c66f832fa52d2c2ee8594..c0285330e9668c939d72ec6e69f826354285dcf1 100644
(file)
--- a/
linuxthreads/sysdeps/i386/useldt.h
+++ b/
linuxthreads/sysdeps/i386/useldt.h
@@
-83,7
+83,7
@@
extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t);
({ \
int __gs; \
struct modify_ldt_ldt_s ldt_entry = \
- { ({ asm ("movw %%gs, %w0" : "=q" (__gs)); __gs >>
2
; }), \
+ { ({ asm ("movw %%gs, %w0" : "=q" (__gs)); __gs >>
3
; }), \
(unsigned long int) descr, sizeof (struct _pthread_descr_struct), \
1, 0, 0, 0, 0, 1, 0 }; \
__builtin_expect (INLINE_SYSCALL (set_thread_area, 1, &ldt_entry) == 0, 1) \