Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Make sure _bus_dmamap_load_mbuf() c...
details: https://anonhg.NetBSD.org/src/rev/425d6c65d7b8
branches: trunk
changeset: 545958:425d6c65d7b8
user: scw <scw%NetBSD.org@localhost>
date: Fri Apr 18 09:16:05 2003 +0000
description:
Make sure _bus_dmamap_load_mbuf() converts cpu-relative addresses
to bus-relative addresses.
Spotted by John Gordon, on port-powerpc@.
diffstat:
sys/arch/powerpc/powerpc/bus_dma.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 310e050b13b9 -r 425d6c65d7b8 sys/arch/powerpc/powerpc/bus_dma.c
--- a/sys/arch/powerpc/powerpc/bus_dma.c Fri Apr 18 06:00:46 2003 +0000
+++ b/sys/arch/powerpc/powerpc/bus_dma.c Fri Apr 18 09:16:05 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.10 2003/04/09 22:28:56 matt Exp $ */
+/* $NetBSD: bus_dma.c,v 1.11 2003/04/18 09:16:05 scw Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -325,7 +325,8 @@
error = EFBIG;
continue;
}
- map->dm_segs[seg].ds_addr = lastaddr;
+ map->dm_segs[seg].ds_addr =
+ PHYS_TO_BUS_MEM(t, lastaddr);
map->dm_segs[seg].ds_len = m->m_len;
lastaddr += m->m_len;
continue;
Home |
Main Index |
Thread Index |
Old Index