Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/arch/vax/vax Pull up following revision(s) (requested...
details: https://anonhg.NetBSD.org/src/rev/3b9cce480287
branches: netbsd-6
changeset: 774576:3b9cce480287
user: riz <riz%NetBSD.org@localhost>
date: Mon Sep 03 19:01:25 2012 +0000
description:
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.
diffstat:
sys/arch/vax/vax/machdep.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 25f6c24bc899 -r 3b9cce480287 sys/arch/vax/vax/machdep.c
--- a/sys/arch/vax/vax/machdep.c Mon Sep 03 18:59:23 2012 +0000
+++ b/sys/arch/vax/vax/machdep.c Mon Sep 03 19:01:25 2012 +0000
@@ -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 @@
*/
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