diff options
author | marius <marius@FreeBSD.org> | 2010-09-15 15:18:41 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-09-15 15:18:41 +0000 |
commit | 3950b71da67a99e82720e6b092f977876549a0d2 (patch) | |
tree | 46b473a6c5c70d36330e132039b783c36a3b13c5 /sys/sparc64 | |
parent | 2eb7a3903b20124b8ceeb1f1e6ad876cb0c59610 (diff) | |
download | FreeBSD-src-3950b71da67a99e82720e6b092f977876549a0d2.zip FreeBSD-src-3950b71da67a99e82720e6b092f977876549a0d2.tar.gz |
- Update the comment in swi_vm() regarding busdma bounce buffers; it's
unlikely that support for these ever will be implemented on sparc64 as
the IOMMUs are able to translate to up to the maximum physical address
supported by the respective machine, bypassing the IOMMU is affected
by hardware errata and being able to support DMA engines which cannot
do at least 32-bit DMA does not justify the costs.
- The page zeroing in uma_small_alloc() may use the VIS-based block zero
function so take advantage of it.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/vm_machdep.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c index 9dc55c6..c550717 100644 --- a/sys/sparc64/sparc64/vm_machdep.c +++ b/sys/sparc64/sparc64/vm_machdep.c @@ -492,10 +492,7 @@ void swi_vm(void *v) { - /* - * Nothing to do here yet - busdma bounce buffers are not yet - * implemented. - */ + /* Nothing to do here - busdma bounce buffers are not implemented. */ } void * @@ -540,7 +537,7 @@ uma_small_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) } va = (void *)TLB_PHYS_TO_DIRECT(pa); if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0) - bzero(va, PAGE_SIZE); + cpu_block_zero(va, PAGE_SIZE); return (va); } |