diff options
author | peter <peter@FreeBSD.org> | 2002-04-29 07:43:16 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-04-29 07:43:16 +0000 |
commit | c0e3147cc6cb9443ed740df00ac3e6ff532536e5 (patch) | |
tree | 8606fb37ea8e86e89888ad66971582ab9925c328 /sys/amd64/isa/isa_dma.c | |
parent | 18fb0e27c7018fe7e30a1a44ac1ab4bd16f98130 (diff) | |
download | FreeBSD-src-c0e3147cc6cb9443ed740df00ac3e6ff532536e5.zip FreeBSD-src-c0e3147cc6cb9443ed740df00ac3e6ff532536e5.tar.gz |
Tidy up some loose ends.
i386/ia64/alpha - catch up to sparc64/ppc:
- replace pmap_kernel() with refs to kernel_pmap
- change kernel_pmap pointer to (&kernel_pmap_store)
(this is a speedup since ld can set these at compile/link time)
all platforms (as suggested by jake):
- gc unused pmap_reference
- gc unused pmap_destroy
- gc unused struct pmap.pm_count
(we never used pm_count - we track address space sharing at the vmspace)
Diffstat (limited to 'sys/amd64/isa/isa_dma.c')
-rw-r--r-- | sys/amd64/isa/isa_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/isa/isa_dma.c b/sys/amd64/isa/isa_dma.c index 36bd2e5..3b6e231 100644 --- a/sys/amd64/isa/isa_dma.c +++ b/sys/amd64/isa/isa_dma.c @@ -257,7 +257,7 @@ isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan) } /* translate to physical */ - phys = pmap_extract(pmap_kernel(), (vm_offset_t)addr); + phys = pmap_extract(kernel_pmap, (vm_offset_t)addr); if (flags & ISADMA_RAW) { dma_auto_mode |= (1 << chan); @@ -380,7 +380,7 @@ isa_dmarangecheck(caddr_t va, u_int length, int chan) endva = (vm_offset_t)round_page((vm_offset_t)va + length); for (; va < (caddr_t) endva ; va += PAGE_SIZE) { - phys = trunc_page(pmap_extract(pmap_kernel(), (vm_offset_t)va)); + phys = trunc_page(pmap_extract(kernel_pmap, (vm_offset_t)va)); #define ISARAM_END RAM_END if (phys == 0) panic("isa_dmacheck: no physical page present"); |