Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Truncate receive buffers to 4-byte boundary. Sli...
details: https://anonhg.NetBSD.org/src/rev/0d72f0a5012a
branches: trunk
changeset: 486556:0d72f0a5012a
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu May 25 16:47:18 2000 +0000
description:
Truncate receive buffers to 4-byte boundary. Slightly modified
from kern/10198, from Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>.
diffstat:
sys/dev/ic/tulipvar.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r a2cca30c0923 -r 0d72f0a5012a sys/dev/ic/tulipvar.h
--- a/sys/dev/ic/tulipvar.h Thu May 25 16:37:33 2000 +0000
+++ b/sys/dev/ic/tulipvar.h Thu May 25 16:47:18 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tulipvar.h,v 1.33 2000/04/04 19:22:52 thorpej Exp $ */
+/* $NetBSD: tulipvar.h,v 1.34 2000/05/25 16:47:18 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -506,8 +506,8 @@
__rxd->td_bufaddr2 = \
htole32(TULIP_CDRXADDR((sc), TULIP_NEXTRX((x)))); \
__rxd->td_ctl = \
- htole32(((__m->m_ext.ext_size - 1) << TDCTL_SIZE1_SHIFT) | \
- (sc)->sc_tdctl_ch | \
+ htole32((((__m->m_ext.ext_size - 1) & ~0x3U) \
+ << TDCTL_SIZE1_SHIFT) | (sc)->sc_tdctl_ch | \
((x) == (TULIP_NRXDESC - 1) ? sc->sc_tdctl_er : 0)); \
__rxd->td_status = htole32(TDSTAT_OWN|TDSTAT_Rx_FS|TDSTAT_Rx_LS); \
TULIP_CDRXSYNC((sc), (x), BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE); \
Home |
Main Index |
Thread Index |
Old Index