Module Name:    src
Committed By:   riz
Date:           Mon Sep  3 19:01:25 UTC 2012

Modified Files:
        src/sys/arch/vax/vax [netbsd-6]: machdep.c

Log Message:
Pull up following revision(s) (requested by martin in ticket #532):
        sys/arch/vax/vax/machdep.c: revision 1.189
Kernel crash dumps are not properly implemented - so do not pretend they
would exist and set dumplo to 0 if dumpsize is 0. This makes savecore
happy.
XXX - implement real dumps, most of the needed code seems to be in place
already.


To generate a diff of this commit:
cvs rdiff -u -r1.185.2.1 -r1.185.2.2 src/sys/arch/vax/vax/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/vax/machdep.c
diff -u src/sys/arch/vax/vax/machdep.c:1.185.2.1 src/sys/arch/vax/vax/machdep.c:1.185.2.2
--- src/sys/arch/vax/vax/machdep.c:1.185.2.1	Mon May 21 15:25:56 2012
+++ src/sys/arch/vax/vax/machdep.c	Mon Sep  3 19:01:25 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.185.2.1 2012/05/21 15:25:56 riz Exp $	 */
+/* $NetBSD: machdep.c,v 1.185.2.2 2012/09/03 19:01:25 riz Exp $	 */
 
 /*
  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -83,7 +83,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.185.2.1 2012/05/21 15:25:56 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.185.2.2 2012/09/03 19:01:25 riz Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -247,6 +247,13 @@ cpu_dumpconf(void)
 	 */
 	if (dumplo < btodb(PAGE_SIZE))
 		dumplo = btodb(PAGE_SIZE);
+
+	/*
+	 * If we have nothing to dump (XXX implement crash dumps),
+	 * make it clear for savecore that there is no dump.
+	 */
+	if (dumpsize <= 0)
+		dumplo = 0;
 }
 
 static int

Reply via email to