diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-22 03:13:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-22 03:13:46 +0000 |
commit | 8acb0ba4c739771ef47cd9bee4b6fc7acea7ab1c (patch) | |
tree | fd63c181a6a5d76764a9c9667c3d91f86b587385 /sys/arch | |
parent | 838f41baaecf0918d33a699aa6542f8d2cbc18a6 (diff) |
bcopy -> memcpy; ok tedu
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/isa/isa_machdep.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/amd64/isa/isa_machdep.c b/sys/arch/amd64/isa/isa_machdep.c index 52bd2b2bc9e..0757f0cddea 100644 --- a/sys/arch/amd64/isa/isa_machdep.c +++ b/sys/arch/amd64/isa/isa_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.c,v 1.24 2014/07/13 21:51:12 kettenis Exp $ */ +/* $OpenBSD: isa_machdep.c,v 1.25 2014/12/22 03:13:45 deraadt Exp $ */ /* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */ #define ISA_DMA_STATS @@ -631,9 +631,8 @@ _isa_bus_dmamap_sync(bus_dma_tag_t t, bus_dmamap_t map, bus_addr_t offset, * caller's buffer to the bounce buffer. */ if (cookie->id_flags & ID_IS_BOUNCING) - bcopy(cookie->id_origbuf + offset, - cookie->id_bouncebuf + offset, - len); + memcpy(cookie->id_bouncebuf + offset, + cookie->id_origbuf + offset, len); } _bus_dmamap_sync(t, map, offset, len, op); @@ -644,9 +643,8 @@ _isa_bus_dmamap_sync(bus_dma_tag_t t, bus_dmamap_t map, bus_addr_t offset, * bounce buffer to the caller's buffer. */ if (cookie->id_flags & ID_IS_BOUNCING) - bcopy(cookie->id_bouncebuf + offset, - cookie->id_origbuf + offset, - len); + memcpy(cookie->id_origbuf + offset, + cookie->id_bouncebuf + offset, len); } } |