Use uint8_t * for pointer arith with mbuf data
This commit is contained in:
parent
8ed0e0b4a6
commit
398339900b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isadma_bounce.c,v 1.6 2007/03/04 05:59:08 christos Exp $ */
|
||||
/* $NetBSD: isadma_bounce.c,v 1.7 2007/03/05 18:21:59 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: isadma_bounce.c,v 1.6 2007/03/04 05:59:08 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: isadma_bounce.c,v 1.7 2007/03/05 18:21:59 matt Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -495,7 +495,7 @@ isadma_bounce_dmamap_sync(bus_dma_tag_t t, bus_dmamap_t map, bus_addr_t offset,
|
|||
minlen = len < m->m_len - moff ?
|
||||
len : m->m_len - moff;
|
||||
|
||||
memcpy(mtod(m, void *) + moff,
|
||||
memcpy(mtod(m, uint8_t *) + moff,
|
||||
(char *)cookie->id_bouncebuf + offset,
|
||||
minlen);
|
||||
|
||||
|
|
Loading…
Reference in New Issue