From: "Hervé Poussineau" <hpoussin@reactos.org>
To: qemu-devel@nongnu.org
Cc: "Anthony Liguori" <aliguori@us.ibm.com>,
"Hervé Poussineau" <hpoussin@reactos.org>
Subject: [Qemu-devel] [PATCH 3/3] sonic: reset all bits of in_use field when required
Date: Sun, 6 Nov 2011 22:48:52 +0100 [thread overview]
Message-ID: <1320616132-21864-3-git-send-email-hpoussin@reactos.org> (raw)
In-Reply-To: <1320616132-21864-1-git-send-email-hpoussin@reactos.org>
This field is 16 or 32 bit wide depending of SONIC_DCR_DW bit.
Fixes network in NetBSD 5.1/arc
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
hw/dp8393x.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/dp8393x.c b/hw/dp8393x.c
index acb1604..c3e86ce 100644
--- a/hw/dp8393x.c
+++ b/hw/dp8393x.c
@@ -817,7 +817,7 @@ static ssize_t nic_receive(VLANClientState *nc, const uint8_t * buf, size_t size
/* EOL detected */
s->regs[SONIC_ISR] |= SONIC_ISR_RDE;
} else {
- data[0 * width] = 0; /* in_use */
+ memset(&data[0 * width], 0, width * sizeof(uint16_t)); /* in_use */
s->memory_rw(s->mem_opaque,
((s->regs[SONIC_URDA] << 16) | s->regs[SONIC_CRDA]) + sizeof(uint16_t) * 6 * width,
(uint8_t *)data, size, 1);
--
1.7.6.3
next prev parent reply other threads:[~2011-11-06 21:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-06 21:48 [Qemu-devel] [PATCH 1/3] sonic: fix typo Hervé Poussineau
2011-11-06 21:48 ` [Qemu-devel] [PATCH 2/3] sonic: fix netcard reset Hervé Poussineau
2011-11-07 11:16 ` Andreas Färber
2011-11-06 21:48 ` Hervé Poussineau [this message]
2011-11-07 11:15 ` [Qemu-trivial] [Qemu-devel] [PATCH 1/3] sonic: fix typo Andreas Färber
2011-11-07 11:15 ` Andreas Färber
2011-11-08 10:46 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320616132-21864-3-git-send-email-hpoussin@reactos.org \
--to=hpoussin@reactos.org \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.