From 76f0ee4e324acc0a0b7419446e6fe2be99e78d90 Mon Sep 17 00:00:00 2001 From: nisimura Date: Mon, 29 May 2000 09:47:19 +0000 Subject: [PATCH] Put an additional check to see curproc was an FPA owner process. --- sys/arch/mips/mips/mips_machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/mips/mips/mips_machdep.c b/sys/arch/mips/mips/mips_machdep.c index ed010bc8741d..73b688fb75bd 100644 --- a/sys/arch/mips/mips/mips_machdep.c +++ b/sys/arch/mips/mips/mips_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: mips_machdep.c,v 1.81 2000/05/23 04:21:40 soren Exp $ */ +/* $NetBSD: mips_machdep.c,v 1.82 2000/05/29 09:47:19 nisimura Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -52,7 +52,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.81 2000/05/23 04:21:40 soren Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.82 2000/05/29 09:47:19 nisimura Exp $"); #include "opt_compat_netbsd.h" #include "opt_compat_ultrix.h" @@ -678,7 +678,7 @@ setregs(p, pack, stack) f->f_regs[A2] = 0; f->f_regs[A3] = (int)PS_STRINGS; - if (fpcurproc == p) + if ((p->p_md.md_flags & MDP_FPUSED) && p == fpcurproc) fpcurproc = (struct proc *)0; memset(&p->p_addr->u_pcb.pcb_fpregs, 0, sizeof(struct fpreg)); p->p_md.md_flags &= ~MDP_FPUSED;