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 | |
parent | bd858e3aaef6eb1d44e854d155e6d4d0ff464d89 (diff) | |
download | FreeBSD-src-14048face6f821f6a6cf8102a2b378d94fb8750f.zip FreeBSD-src-14048face6f821f6a6cf8102a2b378d94fb8750f.tar.gz |
Brucify the pmap_enter_temporary() changes.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/alpha/alpha/pmap.c | 6 | ||||
-rw-r--r-- | sys/amd64/amd64/pmap.c | 12 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_da.c | 8 | ||||
-rw-r--r-- | sys/dev/ata/ata-disk.c | 6 | ||||
-rw-r--r-- | sys/i386/i386/pmap.c | 12 | ||||
-rw-r--r-- | sys/vm/pmap.h | 2 |
6 files changed, 22 insertions, 24 deletions
diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c index da127c6..7cdf67e 100644 --- a/sys/alpha/alpha/pmap.c +++ b/sys/alpha/alpha/pmap.c @@ -2205,10 +2205,10 @@ retry: * Make temporary mapping for a physical address. This is called * during dump. */ -vm_offset_t -pmap_enter_temporary(vm_offset_t pa, vm_prot_t prot) +void * +pmap_kenter_temporary(vm_offset_t pa) { - return ALPHA_PHYS_TO_K0SEG(pa); + return (void *) ALPHA_PHYS_TO_K0SEG(pa); } #define MAX_INIT_PT (96) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 55ea81f..5e3d6b5 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2241,14 +2241,14 @@ retry: } /* - * Make temporary mapping for a physical address using CADDR1. This is - * called during dump. + * Make a temporary mapping for a physical address. This is only intended + * to be used for panic dumps. */ -vm_offset_t -pmap_enter_temporary(vm_offset_t pa, vm_prot_t prot) +void * +pmap_kenter_temporary(vm_offset_t pa) { - pmap_enter(kernel_pmap, (vm_offset_t) CADDR1, pa, prot, TRUE); - return (vm_offset_t) CADDR1; + pmap_kenter((vm_offset_t)CADDR1, pa); + return ((void *)CADDR1); } #define MAX_INIT_PT (96) 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); diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 8a74e83..4b0aaf7 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -272,12 +272,12 @@ addump(dev_t dev) ata_reinit(adp->controller); while (count > 0) { - vm_offset_t va; + void *va; DELAY(1000); 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)); bzero(&request, sizeof(struct ad_request)); request.device = adp; diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 55ea81f..5e3d6b5 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -2241,14 +2241,14 @@ retry: } /* - * Make temporary mapping for a physical address using CADDR1. This is - * called during dump. + * Make a temporary mapping for a physical address. This is only intended + * to be used for panic dumps. */ -vm_offset_t -pmap_enter_temporary(vm_offset_t pa, vm_prot_t prot) +void * +pmap_kenter_temporary(vm_offset_t pa) { - pmap_enter(kernel_pmap, (vm_offset_t) CADDR1, pa, prot, TRUE); - return (vm_offset_t) CADDR1; + pmap_kenter((vm_offset_t)CADDR1, pa); + return ((void *)CADDR1); } #define MAX_INIT_PT (96) diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h index 88b5631..b6afa93 100644 --- a/sys/vm/pmap.h +++ b/sys/vm/pmap.h @@ -140,7 +140,7 @@ void pmap_swapout_proc __P((struct proc *p)); void pmap_swapin_proc __P((struct proc *p)); void pmap_activate __P((struct proc *p)); vm_offset_t pmap_addr_hint __P((vm_object_t obj, vm_offset_t addr, vm_size_t size)); -vm_offset_t pmap_enter_temporary __P((vm_offset_t pa, vm_prot_t prot)); +void *pmap_kenter_temporary __P((vm_offset_t pa)); void pmap_init2 __P((void)); #endif /* _KERNEL */ |