Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/vax Kernel crash dumps are not properly impleme...
details: https://anonhg.NetBSD.org/src/rev/d49535bc88ed
branches: trunk
changeset: 781224:d49535bc88ed
user: martin <martin%NetBSD.org@localhost>
date: Mon Aug 27 22:25:09 2012 +0000
description:
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.
diffstat:
sys/arch/vax/vax/machdep.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r a94e8dab3bf3 -r d49535bc88ed sys/arch/vax/vax/machdep.c
--- a/sys/arch/vax/vax/machdep.c Mon Aug 27 21:50:19 2012 +0000
+++ b/sys/arch/vax/vax/machdep.c Mon Aug 27 22:25:09 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.188 2012/05/21 14:15:19 martin Exp $ */
+/* $NetBSD: machdep.c,v 1.189 2012/08/27 22:25:09 martin 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.188 2012/05/21 14:15:19 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.189 2012/08/27 22:25:09 martin Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@@ -245,6 +245,13 @@
*/
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
Home |
Main Index |
Thread Index |
Old Index