diff options
author | dfr <dfr@FreeBSD.org> | 2000-05-29 19:21:01 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2000-05-29 19:21:01 +0000 |
commit | 14048face6f821f6a6cf8102a2b378d94fb8750f (patch) | |
tree | e77939b5d16aefb6956ab90989e60b5347bc3c7c /sys/cam | |
parent | bd858e3aaef6eb1d44e854d155e6d4d0ff464d89 (diff) | |
download | FreeBSD-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.c | 8 |
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); |