summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-12-22 03:15:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-12-22 03:15:00 +0000
commit4a082f9e9407b3d029907535672bf9ebc4842d5a (patch)
tree6ed9513c692a24611918036b544c16db9fb081e0 /sys/arch/i386
parent8acb0ba4c739771ef47cd9bee4b6fc7acea7ab1c (diff)
bcopy -> memcpy, as in amd64
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/isa/isa_machdep.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/i386/isa/isa_machdep.c b/sys/arch/i386/isa/isa_machdep.c
index dd859f5b64e..cef9b3e6b0c 100644
--- a/sys/arch/i386/isa/isa_machdep.c
+++ b/sys/arch/i386/isa/isa_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.c,v 1.77 2014/07/13 21:51:12 kettenis Exp $ */
+/* $OpenBSD: isa_machdep.c,v 1.78 2014/12/22 03:14:59 deraadt Exp $ */
/* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */
/*-
@@ -904,9 +904,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((char *)cookie->id_origbuf + offset,
- cookie->id_bouncebuf + offset,
- len);
+ memcpy(cookie->id_bouncebuf + offset,
+ (char *)cookie->id_origbuf + offset, len);
}
_bus_dmamap_sync(t, map, offset, len, op);
@@ -917,9 +916,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((char *)cookie->id_bouncebuf + offset,
- cookie->id_origbuf + offset,
- len);
+ memcpy(cookie->id_origbuf + offset,
+ (char *)cookie->id_bouncebuf + offset, len);
}
}