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 restructure the FPU and AltiVE...
details: https://anonhg.NetBSD.org/src/rev/7026139214c4
branches: trunk
changeset: 534498:7026139214c4
user: chs <chs%NetBSD.org@localhost>
date: Sun Jul 28 07:38:34 2002 +0000
description:
restructure the FPU and AltiVEC code so that it works for MP.
diffstat:
sys/compat/linux/arch/powerpc/linux_machdep.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (48 lines):
diff -r 852b2598e396 -r 7026139214c4 sys/compat/linux/arch/powerpc/linux_machdep.c
--- a/sys/compat/linux/arch/powerpc/linux_machdep.c Sun Jul 28 07:11:25 2002 +0000
+++ b/sys/compat/linux/arch/powerpc/linux_machdep.c Sun Jul 28 07:38:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_machdep.c,v 1.17 2002/07/09 17:41:27 matt Exp $ */
+/* $NetBSD: linux_machdep.c,v 1.18 2002/07/28 07:38:34 chs 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.17 2002/07/09 17:41:27 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.18 2002/07/28 07:38:34 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -196,8 +196,7 @@
memset(&frame, 0, sizeof(frame));
memcpy(&frame.lgp_regs, &linux_regs, sizeof(linux_regs));
- if (curproc == curcpu()->ci_fpuproc)
- save_fpu(curproc);
+ save_fpu_proc(curproc);
memcpy(&frame.lfp_regs, curpcb->pcb_fpu.fpr, sizeof(frame.lfp_regs));
/*
@@ -303,8 +302,7 @@
/*
* Make sure, fpu is sync'ed
*/
- if (curproc == curcpu()->ci_fpuproc)
- save_fpu(curproc);
+ save_fpu_proc(curproc);
/*
* Restore register context.
@@ -393,8 +391,7 @@
/*
* Make sure, fpu is in sync
*/
- if (curproc == curcpu()->ci_fpuproc)
- save_fpu(curproc);
+ save_fpu_proc(curproc);
/*
* Restore register context.
Home |
Main Index |
Thread Index |
Old Index