diff options
author | Dmitrij Tejblum <dt@FreeBSD.org> | 1999-06-10 20:40:59 +0000 |
---|---|---|
committer | Dmitrij Tejblum <dt@FreeBSD.org> | 1999-06-10 20:40:59 +0000 |
commit | 23405ee4783c6028f7f9ba6056e24cef3c03358c (patch) | |
tree | e9aa42811b2751b4e01a6b9e552b45818898e4f1 /sys/powerpc | |
parent | b150665acff1ae03488099ed02f344576ae1d257 (diff) | |
download | src-23405ee4783c6028f7f9ba6056e24cef3c03358c.tar.gz src-23405ee4783c6028f7f9ba6056e24cef3c03358c.zip |
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
Notes
Notes:
svn path=/head/; revision=47869
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/vm_machdep.c | 6 | ||||
-rw-r--r-- | sys/powerpc/powerpc/vm_machdep.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c index f5f3cdfa3426..a63879401cfa 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 f5f3cdfa3426..a63879401cfa 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++; |