+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.
+
2003-06-23 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
/* Store current floating-point environment.
- Copyright (C) 1997,99,2000,01 Free Software Foundation, Inc.
+ Copyright (C) 1997,1999,2000,2001,2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
__fegetenv (fenv_t *envp)
{
__asm__ ("fnstenv %0" : "=m" (*envp));
+ /* 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. */
+ __asm__ ("fldenv %0" : : "m" (*envp));
/* Success. */
return 0;
/* 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.
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