Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic When mapping the consumer assignment, assign db_s...
details: https://anonhg.NetBSD.org/src/rev/03d50025f061
branches: trunk
changeset: 519612:03d50025f061
user: matt <matt%NetBSD.org@localhost>
date: Fri Dec 21 23:21:47 2001 +0000
description:
When mapping the consumer assignment, assign db_seg[0] to cb_seg[0] so any
private fields are copied as well. Then adjust cb_seq[0] public fields.
This make the DEFPA come up on sparc64.
diffstat:
sys/dev/ic/pdq_ifsubr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 5b4dc6303458 -r 03d50025f061 sys/dev/ic/pdq_ifsubr.c
--- a/sys/dev/ic/pdq_ifsubr.c Fri Dec 21 22:56:16 2001 +0000
+++ b/sys/dev/ic/pdq_ifsubr.c Fri Dec 21 23:21:47 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pdq_ifsubr.c,v 1.37 2001/11/13 13:14:43 lukem Exp $ */
+/* $NetBSD: pdq_ifsubr.c,v 1.38 2001/12/21 23:21:47 matt Exp $ */
/*-
* Copyright (c) 1995, 1996 Matt Thomas <matt%3am-software.com@localhost>
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pdq_ifsubr.c,v 1.37 2001/11/13 13:14:43 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pdq_ifsubr.c,v 1.38 2001/12/21 23:21:47 matt Exp $");
#ifdef __NetBSD__
#include "opt_inet.h"
@@ -642,8 +642,8 @@
if (!not_ok) {
steps = 8;
pdq->pdq_unsolicited_info.ui_pa_bufstart = sc->sc_uimap->dm_segs[0].ds_addr;
- cb_segs[0].ds_addr = db_segs[0].ds_addr +
- offsetof(pdq_descriptor_block_t, pdqdb_consumer);
+ cb_segs[0] = db_segs[0];
+ cb_segs[0].ds_addr += offsetof(pdq_descriptor_block_t, pdqdb_consumer);
cb_segs[0].ds_len = sizeof(pdq_consumer_block_t);
not_ok = bus_dmamem_map(sc->sc_dmatag, cb_segs, 1,
sizeof(*pdq->pdq_cbp), (caddr_t *) &pdq->pdq_cbp,
Home |
Main Index |
Thread Index |
Old Index