Module Name: src
Committed By: riz
Date: Mon May 7 16:38:43 UTC 2012
Modified Files:
src/sys/arch/i386/i386 [netbsd-6]: compat_16_machdep.c
Log Message:
Pull up following revision(s) (requested by christos in ticket #221):
sys/arch/i386/i386/compat_16_machdep.c: revision 1.22
>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.21.14.1 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.21.14.1
--- src/sys/arch/i386/i386/compat_16_machdep.c:1.21 Sat Nov 6 11:40:24 2010
+++ src/sys/arch/i386/i386/compat_16_machdep.c Mon May 7 16:38:43 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.21.14.1 2012/05/07 16:38:43 riz 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.21.14.1 2012/05/07 16:38:43 riz 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)