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 Don't dump if there's no address sp...
details: https://anonhg.NetBSD.org/src/rev/a8f0186520ca
branches: trunk
changeset: 495464:a8f0186520ca
user: eeh <eeh%NetBSD.org@localhost>
date: Fri Jul 28 19:08:25 2000 +0000
description:
Don't dump if there's no address space reserved for it.
diffstat:
sys/arch/sparc64/sparc64/machdep.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 5d50618b06d0 -r a8f0186520ca sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c Fri Jul 28 17:49:52 2000 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c Fri Jul 28 19:08:25 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.83 2000/07/27 13:58:54 mrg Exp $ */
+/* $NetBSD: machdep.c,v 1.84 2000/07/28 19:08:25 eeh Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -894,6 +894,10 @@
*/
if (dumpsize == 0)
cpu_dumpconf();
+ if (!dumpspace) {
+ printf("\nno address space available, dump not possible\n");
+ return;
+ }
if (dumplo <= 0) {
printf("\ndump to dev %u,%u not possible\n", major(dumpdev),
minor(dumpdev));
Home |
Main Index |
Thread Index |
Old Index