Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sandpoint/sandpoint Remove dump stuff that is now i...
details: https://anonhg.NetBSD.org/src/rev/c24c7af0bba4
branches: trunk
changeset: 504275:c24c7af0bba4
user: briggs <briggs%NetBSD.org@localhost>
date: Mon Feb 26 14:55:05 2001 +0000
description:
Remove dump stuff that is now in powerpc_machdep.
diffstat:
sys/arch/sandpoint/sandpoint/machdep.c | 46 +---------------------------------
1 files changed, 1 insertions(+), 45 deletions(-)
diffs (60 lines):
diff -r 1ae7dddf7546 -r c24c7af0bba4 sys/arch/sandpoint/sandpoint/machdep.c
--- a/sys/arch/sandpoint/sandpoint/machdep.c Mon Feb 26 14:52:11 2001 +0000
+++ b/sys/arch/sandpoint/sandpoint/machdep.c Mon Feb 26 14:55:05 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.5 2001/02/24 22:39:19 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.6 2001/02/26 14:55:05 briggs Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -622,50 +622,6 @@
}
#endif
-/*
- * Crash dump handling.
- */
-u_long dumpmag = 0x8fca0101; /* magic number */
-int dumpsize = 0; /* size of dump in pages */
-long dumplo = -1; /* blocks */
-
-/*
- * This is called by main to set dumplo and dumpsize.
- * Dumps always skip the first NBPG of disk space
- * in case there might be a disk label stored there.
- * If there is extra space, put dump at the end to
- * reduce the chance that swapping trashes it.
- */
-void
-cpu_dumpconf()
-{
- int nblks; /* size of dump area */
- int maj;
-
- if (dumpdev == NODEV)
- return;
- maj = major(dumpdev);
- if (maj < 0 || maj >= nblkdev)
- panic("dumpconf: bad dumpdev=0x%x", dumpdev);
- if (bdevsw[maj].d_psize == NULL)
- return;
- nblks = (*bdevsw[maj].d_psize)(dumpdev);
- if (nblks <= ctod(1))
- return;
-
- dumpsize = physmem;
-
- /* Always skip the first NBPG, in case there is a label there. */
- if (dumplo < ctod(1))
- dumplo = ctod(1);
-
- /* Put dump at end of partition, and make it fit. */
- if (dumpsize > dtoc(nblks - dumplo))
- dumpsize = dtoc(nblks - dumplo);
- if (dumplo < nblks - ctod(dumpsize))
- dumplo = nblks - ctod(dumpsize);
-}
-
void
dumpsys()
{
Home |
Main Index |
Thread Index |
Old Index