From 24176967122b027e51e437ace3b9afdf841fed9d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 24 Jun 2003 09:02:16 +0000 Subject: Update. 2003-05-19 Ed Connell * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain floating point mask. * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise. --- sysdeps/unix/sysv/linux/i386/getcontext.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix') 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 , 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 -- cgit 1.4.1