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 New interface to npxsave.



details:   https://anonhg.NetBSD.org/src/rev/449d2bc64e02
branches:  sommerfeld_i386mp_1
changeset: 482263:449d2bc64e02
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Fri Aug 18 13:37:44 2000 +0000

description:
New interface to npxsave.
For DDB, call db_machine_init() before ddb_init().

diffstat:

 sys/arch/i386/i386/machdep.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r b701378cf0b9 -r 449d2bc64e02 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Fri Aug 18 13:30:08 2000 +0000
+++ b/sys/arch/i386/i386/machdep.c      Fri Aug 18 13:37:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.376.2.6 2000/08/07 01:08:39 sommerfeld Exp $     */
+/*     $NetBSD: machdep.c,v 1.376.2.7 2000/08/18 13:37:44 sommerfeld Exp $     */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -1458,7 +1458,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
 
 #ifdef USER_LDT
@@ -1733,7 +1734,10 @@
                extern int *esym;
                struct btinfo_symtab *symtab;
 
+               db_machine_init();
+
                symtab = lookup_bootinfo(BTINFO_SYMTAB);
+
                if (symtab) {
                        symtab->ssym += KERNBASE;
                        symtab->esym += KERNBASE;



Home | Main Index | Thread Index | Old Index