Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 Initialize pcb_lastcall so db_dump_...



details:   https://anonhg.NetBSD.org/src/rev/0957932c5017
branches:  trunk
changeset: 500153:0957932c5017
user:      eeh <eeh%NetBSD.org@localhost>
date:      Thu Dec 07 00:53:29 2000 +0000

description:
Initialize pcb_lastcall so db_dump_pcb() will not bomb on non-DEBUG kernels.

diffstat:

 sys/arch/sparc64/sparc64/vm_machdep.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r ff0163311d8e -r 0957932c5017 sys/arch/sparc64/sparc64/vm_machdep.c
--- a/sys/arch/sparc64/sparc64/vm_machdep.c     Wed Dec 06 23:42:34 2000 +0000
+++ b/sys/arch/sparc64/sparc64/vm_machdep.c     Thu Dec 07 00:53:29 2000 +0000
@@ -1,4 +1,5 @@
-/*     $NetBSD: vm_machdep.c,v 1.33 2000/10/19 05:28:50 mrg Exp $ */
+/*     $NetBSD: vm_machdep.c,v 1.34 2000/12/07 00:53:29 eeh Exp $ */
+#define DEBUG
 
 /*
  * Copyright (c) 1996
@@ -251,6 +252,7 @@
 #endif
        if (p1 == curproc) {
                write_user_windows();
+               rwindow_save(p1);
 
                /*
                 * We're in the kernel, so we don't really care about
@@ -266,6 +268,9 @@
 #ifdef DEBUG
        /* prevent us from having NULL lastcall */
        opcb->lastcall = cpu_forkname;
+       if (opcb->pcb_nsaved) printf("cpu_fork: nsaved %d\n", opcb->pcb_nsaved);
+#else
+       opcb->lastcall = NULL;
 #endif
        bcopy((caddr_t)opcb, (caddr_t)npcb, sizeof(struct pcb));
                if (p1->p_md.md_fpstate) {



Home | Main Index | Thread Index | Old Index