npxdna(): even if there's no effective FPU context switch set ci_fpused;

FPU will be used and needs to be switched on next context switch.
Fix "panic: npxintr: wrong process" with Xen.
This commit is contained in:
bouyer 2008-11-25 21:53:50 +00:00
parent 6db1040de3
commit 5a3b0bf2c9

View File

@ -1,4 +1,4 @@
/* $NetBSD: npx.c,v 1.133 2008/11/25 18:33:21 bouyer Exp $ */
/* $NetBSD: npx.c,v 1.134 2008/11/25 21:53:50 bouyer Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -96,7 +96,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.133 2008/11/25 18:33:21 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.134 2008/11/25 21:53:50 bouyer Exp $");
#if 0
#define IPRINTF(x) printf x
@ -573,6 +573,7 @@ npxdna(struct cpu_info *ci)
*/
if (fl == l) {
KASSERT(l->l_addr->u_pcb.pcb_fpcpu == ci);
ci->ci_fpused = 1;
clts();
splx(s);
return 1;