summaryrefslogtreecommitdiffstats
path: root/sys/scsi/sd.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-09-13 16:12:15 +0000
committerjoerg <joerg@FreeBSD.org>1997-09-13 16:12:15 +0000
commit5167b81f672ae518842429441f38bf4c0ec9ac75 (patch)
tree0fba6b72566fd9404d52c8c4c6af31d58d010f58 /sys/scsi/sd.c
parentfde8a8ec465bddd8378394c44e3b889d741f5009 (diff)
downloadFreeBSD-src-5167b81f672ae518842429441f38bf4c0ec9ac75.zip
FreeBSD-src-5167b81f672ae518842429441f38bf4c0ec9ac75.tar.gz
Revert the logic behind my last change, and use a function called
`is_physical_memory()' now for the decision whether to dump some region of memory or not. Suggested by: davidg
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r--sys/scsi/sd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index 0bc2ca0..13b60cc 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.108 1997/09/02 20:06:37 bde Exp $
+ * $Id: sd.c,v 1.109 1997/09/10 12:31:40 joerg Exp $
*/
#include "opt_bounce.h"
@@ -997,12 +997,12 @@ sddump(dev_t dev)
blknum = dumplo + blkoff;
while (num > 0) {
- if (is_adapter_memory((vm_offset_t)addr))
+ if (is_physical_memory((vm_offset_t)addr))
pmap_enter(kernel_pmap, (vm_offset_t)CADDR1,
- trunc_page(0), VM_PROT_READ, TRUE);
+ trunc_page(addr), VM_PROT_READ, TRUE);
else
- pmap_enter(kernel_pmap, (vm_offset_t)CADDR1,
- trunc_page(addr), VM_PROT_READ, TRUE);
+ pmap_enter(kernel_pmap, (vm_offset_t)CADDR1,
+ trunc_page(0), VM_PROT_READ, TRUE);
/*
* Fill out the scsi command
*/
OpenPOWER on IntegriCloud