diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-06-24 09:02:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-06-24 09:02:16 +0000 |
commit | 24176967122b027e51e437ace3b9afdf841fed9d (patch) | |
tree | 9e6cdbaf793db367e817d2baac4eaa7012cdc3bc /sysdeps/unix/sysv/linux/i386 | |
parent | 67b78ef91b1441c7f94fe03e1bad161d5912f5ac (diff) | |
download | glibc-24176967122b027e51e437ace3b9afdf841fed9d.tar.gz glibc-24176967122b027e51e437ace3b9afdf841fed9d.tar.xz glibc-24176967122b027e51e437ace3b9afdf841fed9d.zip |
Update.
2003-05-19 Ed Connell <ed.connell@sas.com> * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain floating point mask. * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/getcontext.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/getcontext.S b/sysdeps/unix/sysv/linux/i386/getcontext.S index 9db129f5a6..68541d5d80 100644 --- a/sysdeps/unix/sysv/linux/i386/getcontext.S +++ b/sysdeps/unix/sysv/linux/i386/getcontext.S @@ -1,5 +1,5 @@ /* Save current context. - Copyright (C) 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2001. @@ -56,6 +56,10 @@ ENTRY(__getcontext) movl %ecx, oFPREGS(%eax) /* Save the floating-point context. */ fnstenv (%ecx) + /* And load it right back since the processor changes the mask. + Intel thought this opcode to be used in interrupt handlers which + would block all exceptions. */ + fldenv (%ecx) /* Save the current signal mask. */ pushl %ebx |