From 16f5a971881082bcd48a8114de8dcc990341a3ab Mon Sep 17 00:00:00 2001
From: dt
Date: Thu, 10 Jun 1999 20:40:59 +0000
Subject: Replace my previous fix of saving the FP state with a much simpler
one: when we swap out fpcurproc, save its FP state.
Suggested by: bde
---
sys/powerpc/aim/vm_machdep.c | 6 ++----
sys/powerpc/powerpc/vm_machdep.c | 6 ++----
2 files changed, 4 insertions(+), 8 deletions(-)
(limited to 'sys/powerpc')
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c
index f5f3cdf..a638794 100644
--- a/sys/powerpc/aim/vm_machdep.c
+++ b/sys/powerpc/aim/vm_machdep.c
@@ -38,7 +38,7 @@
*
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
- * $Id: vm_machdep.c,v 1.14 1999/04/23 19:53:38 dt Exp $
+ * $Id: vm_machdep.c,v 1.15 1999/06/08 16:42:19 dt Exp $
*/
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -240,10 +240,8 @@ void
cpu_exit(p)
register struct proc *p;
{
- if (p == fpcurproc) {
- PRELE(fpcurproc);
+ if (p == fpcurproc)
fpcurproc = NULL;
- }
(void) splhigh();
cnt.v_swtch++;
diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c
index f5f3cdf..a638794 100644
--- a/sys/powerpc/powerpc/vm_machdep.c
+++ b/sys/powerpc/powerpc/vm_machdep.c
@@ -38,7 +38,7 @@
*
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
- * $Id: vm_machdep.c,v 1.14 1999/04/23 19:53:38 dt Exp $
+ * $Id: vm_machdep.c,v 1.15 1999/06/08 16:42:19 dt Exp $
*/
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -240,10 +240,8 @@ void
cpu_exit(p)
register struct proc *p;
{
- if (p == fpcurproc) {
- PRELE(fpcurproc);
+ if (p == fpcurproc)
fpcurproc = NULL;
- }
(void) splhigh();
cnt.v_swtch++;
--
cgit v1.1