Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/sommerfeld_i386mp_1]: src/sys/arch/i386/i386 Use revised npxsave_proc in...
details: https://anonhg.NetBSD.org/src/rev/43a64aaec903
branches: sommerfeld_i386mp_1
changeset: 482264:43a64aaec903
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Fri Aug 18 13:38:36 2000 +0000
description:
Use revised npxsave_proc interface.
diffstat:
sys/arch/i386/i386/vm_machdep.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 449d2bc64e02 -r 43a64aaec903 sys/arch/i386/i386/vm_machdep.c
--- a/sys/arch/i386/i386/vm_machdep.c Fri Aug 18 13:37:44 2000 +0000
+++ b/sys/arch/i386/i386/vm_machdep.c Fri Aug 18 13:38:36 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.86.2.5 2000/08/07 01:08:53 sommerfeld Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.86.2.6 2000/08/18 13:38:36 sommerfeld Exp $ */
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@@ -103,7 +103,8 @@
/*
* Save p1's npx h/w state to p1's pcb so that we can copy it.
*/
- npxsave_proc(p1);
+ if (p1->p_addr->u_pcb.pcb_fpcpu != NULL)
+ npxsave_proc(p1, 1);
#endif
p2->p_md.md_flags = p1->p_md.md_flags;
@@ -167,7 +168,7 @@
/*
* Make sure we save the FP state before the user area vanishes.
*/
- npxsave_proc(p);
+ npxsave_proc(p, 1);
#endif
}
@@ -185,7 +186,8 @@
#if NNPX > 0
/* If we were using the FPU, forget about it. */
- npxdrop(p);
+ if (p->p_addr->u_pcb.pcb_fpcpu != NULL)
+ npxsave_proc(p, 0);
#endif
/*
Home |
Main Index |
Thread Index |
Old Index