aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/i386/setcontext.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/setcontext.S')
-rw-r--r--sysdeps/unix/sysv/linux/i386/setcontext.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/setcontext.S b/sysdeps/unix/sysv/linux/i386/setcontext.S
index 985212310e..58a122fc28 100644
--- a/sysdeps/unix/sysv/linux/i386/setcontext.S
+++ b/sysdeps/unix/sysv/linux/i386/setcontext.S
@@ -48,10 +48,9 @@ ENTRY(__setcontext)
movl oFPREGS(%eax), %ecx
fldenv (%ecx)
- /* Restore the FS and GS segment registers. */
- movl oGS(%eax), %edx
+ /* Restore the FS segment register. We don't touch the GS register
+ since it is used for threads. */
movl oFS(%eax), %ecx
- movw %dx, %gs
movw %cx, %fs
/* Load the new stack pointer. */