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 Initialize another fp instance



details:   https://anonhg.NetBSD.org/src/rev/790477fecb04
branches:  trunk
changeset: 554801:790477fecb04
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 02 08:27:41 2003 +0000

description:
Initialize another fp instance

diffstat:

 sys/arch/mips/mips/trap.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7325a8890fe0 -r 790477fecb04 sys/arch/mips/mips/trap.c
--- a/sys/arch/mips/mips/trap.c Sun Nov 02 08:20:48 2003 +0000
+++ b/sys/arch/mips/mips/trap.c Sun Nov 02 08:27:41 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.185 2003/11/02 08:20:48 christos Exp $      */
+/*     $NetBSD: trap.c,v 1.186 2003/11/02 08:27:41 christos Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -78,7 +78,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.185 2003/11/02 08:20:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.186 2003/11/02 08:27:41 christos Exp $");
 
 #include "opt_cputype.h"       /* which mips CPU levels do we support? */
 #include "opt_ktrace.h"
@@ -578,6 +578,7 @@
        case T_TRAP+T_USER:
                ksi.ksi_trap = type & ~T_USER;
                ksi.ksi_signo = SIGFPE;
+               fp = (struct frame *)l->l_md.md_regs;
                ksi.ksi_addr = (void *)fp->f_regs[PC];
                ksi.ksi_code = FPE_FLTOVF; /* XXX */
                break; /* SIGNAL */



Home | Main Index | Thread Index | Old Index