Module Name: src Committed By: matt Date: Fri Apr 29 22:18:16 UTC 2011
Modified Files: src/sys/arch/mips/mips: mips_fpu.c Log Message: minor cleanup (remove redundant static, fix whitespace). To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/mips/mips_fpu.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/mips/mips_fpu.c diff -u src/sys/arch/mips/mips/mips_fpu.c:1.3 src/sys/arch/mips/mips/mips_fpu.c:1.4 --- src/sys/arch/mips/mips/mips_fpu.c:1.3 Sun Feb 20 16:38:13 2011 +++ src/sys/arch/mips/mips/mips_fpu.c Fri Apr 29 22:18:16 2011 @@ -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);