diff options
author | joerg <joerg@FreeBSD.org> | 1997-09-10 12:31:40 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-09-10 12:31:40 +0000 |
commit | adb1bbd53fc3af34ba996c57177768fe3f7b9f56 (patch) | |
tree | 6964851f918d67f4f73e73a9003e75482063dff0 /sys/scsi | |
parent | 9631b54264e1c524f0da7c350dc7838b3711bc30 (diff) | |
download | FreeBSD-src-adb1bbd53fc3af34ba996c57177768fe3f7b9f56.zip FreeBSD-src-adb1bbd53fc3af34ba996c57177768fe3f7b9f56.tar.gz |
Do not ever try to coredump adapter memory regions.
PR: 4486
Submitted by: tegge@idi.ntnu.no (Tor Egge)
Implement a function is_adapter_memory() in order to determine what
should nto be dumped at all. Currently, only populated with the ``ISA
memory hole''. Adapter regions of other busses should be added.
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/sd.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index fe7ba61..0bc2ca0 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -15,7 +15,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992 * - * $Id: sd.c,v 1.107 1997/08/09 01:44:22 julian Exp $ + * $Id: sd.c,v 1.108 1997/09/02 20:06:37 bde Exp $ */ #include "opt_bounce.h" @@ -997,8 +997,12 @@ sddump(dev_t dev) blknum = dumplo + blkoff; while (num > 0) { - pmap_enter(kernel_pmap, (vm_offset_t)CADDR1, trunc_page(addr), - VM_PROT_READ, TRUE); + if (is_adapter_memory((vm_offset_t)addr)) + pmap_enter(kernel_pmap, (vm_offset_t)CADDR1, + trunc_page(0), VM_PROT_READ, TRUE); + else + pmap_enter(kernel_pmap, (vm_offset_t)CADDR1, + trunc_page(addr), VM_PROT_READ, TRUE); /* * Fill out the scsi command */ |