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 minor cleanup (remove redundant static, f...



details:   https://anonhg.NetBSD.org/src/rev/ae52dfa75581
branches:  trunk
changeset: 764658:ae52dfa75581
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Apr 29 22:18:16 2011 +0000

description:
minor cleanup (remove redundant static, fix whitespace).

diffstat:

 sys/arch/mips/mips/mips_fpu.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 5f614da5fb76 -r ae52dfa75581 sys/arch/mips/mips/mips_fpu.c
--- a/sys/arch/mips/mips/mips_fpu.c     Fri Apr 29 22:17:17 2011 +0000
+++ b/sys/arch/mips/mips/mips_fpu.c     Fri Apr 29 22:18:16 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_fpu.c,v 1.3 2011/02/20 16:38:13 rmind Exp $       */
+/*     $NetBSD: mips_fpu.c,v 1.4 2011/04/29 22:18:16 matt Exp $        */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mips_fpu.c,v 1.3 2011/02/20 16:38:13 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_fpu.c,v 1.4 2011/04/29 22:18:16 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -86,7 +86,7 @@
        return pcu_used(&mips_fpu_ops, l);
 }
 
-static void
+void
 mips_fpu_state_save(lwp_t *l, bool release)
 {
        struct trapframe * const tf = l->l_md.md_utf;
@@ -115,7 +115,7 @@
                "cfc1   %1, $31"        "\n\t"
                "cfc1   %1, $31"        "\n\t"
                ".set reorder"          "\n\t"
-               ".set at" 
+               ".set at"
            :   "=&r" (status), "=r"(fpcsr)
            :   "r"(tf->tf_regs[_R_SR] & (MIPS_SR_COP_1_BIT|MIPS3_SR_FR|MIPS_SR_KX|MIPS_SR_INT_IE)),
                "n"(MIPS_COP_0_STATUS));
@@ -217,7 +217,7 @@
 }
 
 void
-mips_fpu_state_load(struct lwp *l, bool used)
+mips_fpu_state_load(lwp_t *l, bool used)
 {
        struct trapframe * const tf = l->l_md.md_utf;
        struct pcb * const pcb = lwp_getpcb(l);



Home | Main Index | Thread Index | Old Index