summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2000-05-29 19:21:01 +0000
committerdfr <dfr@FreeBSD.org>2000-05-29 19:21:01 +0000
commit14048face6f821f6a6cf8102a2b378d94fb8750f (patch)
treee77939b5d16aefb6956ab90989e60b5347bc3c7c /sys/cam
parentbd858e3aaef6eb1d44e854d155e6d4d0ff464d89 (diff)
downloadFreeBSD-src-14048face6f821f6a6cf8102a2b378d94fb8750f.zip
FreeBSD-src-14048face6f821f6a6cf8102a2b378d94fb8750f.tar.gz
Brucify the pmap_enter_temporary() changes.
Diffstat (limited to 'sys/cam')
-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