Module Name: src
Committed By: chs
Date: Wed May 3 00:23:42 UTC 2017
Modified Files:
src/sys/compat/linux/arch/powerpc: linux_machdep.c
Log Message:
add missing arg to fpu_discard().
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/compat/linux/arch/powerpc/linux_machdep.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/compat/linux/arch/powerpc/linux_machdep.c
diff -u src/sys/compat/linux/arch/powerpc/linux_machdep.c:1.49 src/sys/compat/linux/arch/powerpc/linux_machdep.c:1.50
--- src/sys/compat/linux/arch/powerpc/linux_machdep.c:1.49 Thu Mar 16 16:13:21 2017
+++ src/sys/compat/linux/arch/powerpc/linux_machdep.c Wed May 3 00:23:42 2017
@@ -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 @@ linux_sys_rt_sigreturn(struct lwp *l, co
* 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 @@ linux_sys_sigreturn(struct lwp *l, const
* 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);