Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch/powerpc add missing arg to fpu_discard().



details:   https://anonhg.NetBSD.org/src/rev/85e57b9a67d5
branches:  trunk
changeset: 823683:85e57b9a67d5
user:      chs <chs%NetBSD.org@localhost>
date:      Wed May 03 00:23:42 2017 +0000

description:
add missing arg to fpu_discard().

diffstat:

 sys/compat/linux/arch/powerpc/linux_machdep.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (50 lines):

diff -r 4984ea242c58 -r 85e57b9a67d5 sys/compat/linux/arch/powerpc/linux_machdep.c
--- a/sys/compat/linux/arch/powerpc/linux_machdep.c     Tue May 02 20:12:27 2017 +0000
+++ b/sys/compat/linux/arch/powerpc/linux_machdep.c     Wed May 03 00:23:42 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_machdep.c,v 1.49 2017/03/16 16:13:21 chs Exp $ */
+/*     $NetBSD: linux_machdep.c,v 1.50 2017/05/03 00:23:42 chs Exp $ */
 
 /*-
  * Copyright (c) 1995, 2000, 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.49 2017/03/16 16:13:21 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.50 2017/05/03 00:23:42 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -321,13 +321,13 @@
         * Make sure the fpu state is discarded
         */
 #ifdef PPC_HAVE_FPU
-       fpu_discard();
+       fpu_discard(l);
 #endif
 
        memcpy(curpcb->pcb_fpu.fpreg, (void *)&sregs.lfp_regs,
               sizeof(curpcb->pcb_fpu.fpreg));
 
-       fpu_mark_used(curlwp);
+       fpu_mark_used(l);
 
        mutex_enter(p->p_lock);
 
@@ -415,13 +415,13 @@
         * Make sure the fpu state is discarded
         */
 #ifdef PPC_HAVE_FPU
-       fpu_discard();
+       fpu_discard(l);
 #endif
 
        memcpy(curpcb->pcb_fpu.fpreg, (void *)&sregs.lfp_regs,
               sizeof(curpcb->pcb_fpu.fpreg));
 
-       fpu_mark_used(curlwp);
+       fpu_mark_used(l);
 
        mutex_enter(p->p_lock);
 



Home | Main Index | Thread Index | Old Index