summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_da.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cam/scsi/scsi_da.c')
-rw-r--r--sys/cam/scsi/scsi_da.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index f41c038..c0354a7 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -631,14 +631,12 @@ dadump(dev_t dev)
blkcnt = howmany(PAGE_SIZE, secsize);
while (num > 0) {
- vm_offset_t va;
+ void *va;
if (is_physical_memory(addr)) {
- va = pmap_enter_temporary(trunc_page(addr),
- VM_PROT_READ);
+ va = pmap_kenter_temporary(trunc_page(addr));
} else {
- va = pmap_enter_temporary(trunc_page(0),
- VM_PROT_READ);
+ va = pmap_kenter_temporary(trunc_page(0));
}
xpt_setup_ccb(&csio.ccb_h, periph->path, /*priority*/1);
OpenPOWER on IntegriCloud