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 Fix loadfpregs(): the register used to a...



details:   https://anonhg.NetBSD.org/src/rev/992f7e032ff7
branches:  trunk
changeset: 487461:992f7e032ff7
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Thu Jun 08 04:47:13 2000 +0000

description:
Fix loadfpregs():  the register used to access the floating point registers
was not getting loaded, and the floating point registers were being loaded
from the proc structure rather than the FP registers in the pcb.

diffstat:

 sys/arch/mips/mips/mips_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 95b78d0fe9e5 -r 992f7e032ff7 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Thu Jun 08 03:51:56 2000 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Thu Jun 08 04:47:13 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.86 2000/06/06 17:36:12 soren Exp $  */
+/*     $NetBSD: mips_machdep.c,v 1.87 2000/06/08 04:47:13 mhitch Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.86 2000/06/06 17:36:12 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.87 2000/06/08 04:47:13 mhitch Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_compat_ultrix.h"
@@ -1308,7 +1308,7 @@
                "lwc1   $f29, 116(%0)   ;"
                "lwc1   $f30, 120(%0)   ;"
                "lwc1   $f31, 124(%0)   ;"
-               ".set reorder" : "=r"(fp));
+               ".set reorder" :: "r"(fp));
        /*
         * load FPCSR and stop CP1 again while enabling interrupts.
         */



Home | Main Index | Thread Index | Old Index