diff options
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; } |