diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:03:48 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:03:48 -0800 |
commit | 4e468ed2eb86a2406e14f1eca82072ee501d05fd (patch) | |
tree | 4e05b3c66eef86531e464521a3bf96a1864d4bf5 /libc/arch-x86/bionic/__get_tls.c | |
parent | a27d2baa0c1a2ec70f47ea9199b1dd6762c8a349 (diff) | |
download | bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.zip bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.tar.gz bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'libc/arch-x86/bionic/__get_tls.c')
-rwxr-xr-x | libc/arch-x86/bionic/__get_tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/arch-x86/bionic/__get_tls.c b/libc/arch-x86/bionic/__get_tls.c index 68dda86..5ac6e44 100755 --- a/libc/arch-x86/bionic/__get_tls.c +++ b/libc/arch-x86/bionic/__get_tls.c @@ -26,12 +26,12 @@ * SUCH DAMAGE. */ /* see the implementation of __set_tls and pthread.c to understand this - * code. Basically, the content of fs:[0] always is a pointer to the base + * code. Basically, the content of gs:[0] always is a pointer to the base * address of the tls region */ void* __get_tls(void) { void* tls; - asm ( " movl %%fs:0,%0" : "=r"(tls) ); + asm ( " movl %%gs:0, %0" : "=r"(tls) ); return tls; } |