diff options
Diffstat (limited to 'sys/scsi/sd.c')
-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 */ |