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 Change fpuproc to curcpu()->ci...
details: https://anonhg.NetBSD.org/src/rev/e7b2787d20ff
branches: trunk
changeset: 533796:e7b2787d20ff
user: matt <matt%NetBSD.org@localhost>
date: Tue Jul 09 17:41:27 2002 +0000
description:
Change fpuproc to curcpu()->ci_fpuproc.
diffstat:
sys/compat/linux/arch/powerpc/linux_machdep.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 959f1a4ff624 -r e7b2787d20ff sys/compat/linux/arch/powerpc/linux_machdep.c
--- a/sys/compat/linux/arch/powerpc/linux_machdep.c Tue Jul 09 17:22:26 2002 +0000
+++ b/sys/compat/linux/arch/powerpc/linux_machdep.c Tue Jul 09 17:41:27 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_machdep.c,v 1.16 2002/07/04 23:32:11 thorpej Exp $ */
+/* $NetBSD: linux_machdep.c,v 1.17 2002/07/09 17:41:27 matt Exp $ */
/*-
* Copyright (c) 1995, 2000, 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.16 2002/07/04 23:32:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.17 2002/07/09 17:41:27 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -196,7 +196,7 @@
memset(&frame, 0, sizeof(frame));
memcpy(&frame.lgp_regs, &linux_regs, sizeof(linux_regs));
- if (curproc == fpuproc)
+ if (curproc == curcpu()->ci_fpuproc)
save_fpu(curproc);
memcpy(&frame.lfp_regs, curpcb->pcb_fpu.fpr, sizeof(frame.lfp_regs));
@@ -303,7 +303,7 @@
/*
* Make sure, fpu is sync'ed
*/
- if (curproc == fpuproc)
+ if (curproc == curcpu()->ci_fpuproc)
save_fpu(curproc);
/*
@@ -393,7 +393,7 @@
/*
* Make sure, fpu is in sync
*/
- if (curproc == fpuproc)
+ if (curproc == curcpu()->ci_fpuproc)
save_fpu(curproc);
/*
Home |
Main Index |
Thread Index |
Old Index