Module Name: src
Committed By: christos
Date: Sun Apr 22 20:36:52 UTC 2012
Modified Files:
src/sys/arch/i386/i386: compat_16_machdep.c
Log Message:
>From Bob Lee [glee at force10networks dot com], Preserve the have fpu context
bit for compat_16 signals, because the old 1.6 context does not deal with the
fpu.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/i386/i386/compat_16_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/i386/compat_16_machdep.c
diff -u src/sys/arch/i386/i386/compat_16_machdep.c:1.21 src/sys/arch/i386/i386/compat_16_machdep.c:1.22
--- src/sys/arch/i386/i386/compat_16_machdep.c:1.21 Sat Nov 6 07:40:24 2010
+++ src/sys/arch/i386/i386/compat_16_machdep.c Sun Apr 22 16:36:52 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_16_machdep.c,v 1.21 2010/11/06 11:40:24 uebayasi Exp $ */
+/* $NetBSD: compat_16_machdep.c,v 1.22 2012/04/22 20:36:52 christos Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.21 2010/11/06 11:40:24 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.22 2012/04/22 20:36:52 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_vm86.h"
@@ -260,7 +260,9 @@ sendsig_sigcontext(const ksiginfo_t *ksi
/* NOTREACHED */
}
+ int svufpu = l->l_md.md_flags & MDL_USEDFPU;
buildcontext(l, sel, catcher, fp);
+ l->l_md.md_flags |= svufpu;
/* Remember that we're now on the signal stack. */
if (onstack)