Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips if defined SOFTFLOAT, set fpcurproc befor...
details: https://anonhg.NetBSD.org/src/rev/53dc0208320d
branches: trunk
changeset: 486918:53dc0208320d
user: uch <uch%NetBSD.org@localhost>
date: Tue May 30 18:12:47 2000 +0000
description:
if defined SOFTFLOAT, set fpcurproc before call MachFPInterrupt()
diffstat:
sys/arch/mips/mips/trap.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r b40dd709947a -r 53dc0208320d sys/arch/mips/mips/trap.c
--- a/sys/arch/mips/mips/trap.c Tue May 30 17:40:12 2000 +0000
+++ b/sys/arch/mips/mips/trap.c Tue May 30 18:12:47 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.133 2000/05/30 01:23:53 nisimura Exp $ */
+/* $NetBSD: trap.c,v 1.134 2000/05/30 18:12:47 uch Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -44,7 +44,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.133 2000/05/30 01:23:53 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.134 2000/05/30 18:12:47 uch Exp $");
#include "opt_cputype.h" /* which mips CPU levels do we support? */
#include "opt_inet.h"
@@ -677,10 +677,11 @@
p->p_md.md_flags |= MDP_FPUSED;
f->f_regs[SR] |= MIPS_SR_COP_1_BIT;
}
-#else
+#endif /* !SOFTFLOAT */
+ fpcurproc = p;
+#ifdef SOFTFLOAT
MachFPInterrupt(status, cause, opc, p->p_md.md_regs);
#endif
- fpcurproc = p;
userret(p, opc, sticks);
return; /* GEN */
case T_FPE+T_USER:
Home |
Main Index |
Thread Index |
Old Index