summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_shutdown.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2009-04-04 02:12:37 +0000
committermarcel <marcel@FreeBSD.org>2009-04-04 02:12:37 +0000
commitc9498bd9af0d2f300a586f4f9f0e78ed8f34de0e (patch)
treef203009d34abedc5ff5847bb6131bebfe58d009f /sys/kern/kern_shutdown.c
parent1b19722cda9cd7e6a91916b21b893dac8324c67f (diff)
downloadFreeBSD-src-c9498bd9af0d2f300a586f4f9f0e78ed8f34de0e.zip
FreeBSD-src-c9498bd9af0d2f300a586f4f9f0e78ed8f34de0e.tar.gz
PowerPC, meet kernel core dumps. The support is based
on a generic dumper that creates an ELF core file and uses PMAP functions to scan and iterate over memory chunks, as well as handle memory mappings used during dumping. the PMAP layer can choose to return physical memory chunks or virtual memory chunks. For minidumps, the chunks should be virtual. The default MMU I/F implementation for the scan_md() method returns NULL. Thus, when a PMAP implementation does not implement the required methods, an empty core file is created. Here, empty means having an ELF header only. Obtained from: Juniper Networks
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r--sys/kern/kern_shutdown.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 157da53..7702ad8 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -680,15 +680,6 @@ dump_write(struct dumperinfo *di, void *virtual, vm_offset_t physical,
return (di->dumper(di->priv, virtual, physical, offset, length));
}
-#if defined(__powerpc__)
-void
-dumpsys(struct dumperinfo *di __unused)
-{
-
- printf("Kernel dumps not implemented on this architecture\n");
-}
-#endif
-
void
mkdumpheader(struct kerneldumpheader *kdh, char *magic, uint32_t archver,
uint64_t dumplen, uint32_t blksz)
OpenPOWER on IntegriCloud