]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/x86_64/getcontext.S
Fix FPU context handling in getcontext on x86-64.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / x86_64 / getcontext.S
index 4bbc7a4d2e9f7497e754edd82e05061e212d908e..1a31d72dad7cf9ed1ebaa92526ad23fc885fbafa 100644 (file)
@@ -1,5 +1,5 @@
 /* Save current context.
-   Copyright (C) 2002, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2005, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>, 2002.
 
@@ -62,6 +62,7 @@ ENTRY(__getcontext)
        movq    %rcx, oFPREGS(%rdi)
        /* Save the floating-point environment.  */
        fnstenv (%rcx)
+       fldenv  (%rcx)
        stmxcsr oMXCSR(%rdi)
 
        /* Save the current signal mask with