[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnumach and gcc 4.0 (patch 1)
From: |
Thomas Schwinge |
Subject: |
Re: gnumach and gcc 4.0 (patch 1) |
Date: |
Fri, 20 Jan 2006 05:31:05 -0500 |
User-agent: |
Mutt/1.5.6+20040523i |
Hi!
I'm going to commit the following patch unless someone vetoes:
2005-11-05 Thomas Schwinge <tschwinge@gnu.org>
* linux/src/drivers/net/ne2k-pci.c (ne_block_input, ne_block_output):
Fix previous patch.
--- old-gnumach-1-branch.1.ne2k-pci-fixes/linux/src/drivers/net/ne2k-pci.c
2005-09-26 11:48:05.433286440 +0200
+++ new-gnumach-1-branch.1.ne2k-pci-fixes/linux/src/drivers/net/ne2k-pci.c
2005-09-26 11:48:05.439285528 +0200
@@ -541,11 +541,10 @@
insl(NE_BASE + NE_DATAPORT, buf, count>>2);
if (count & 3) {
buf += count & ~3;
- if (count & 2)
- {
- *buf = *(u16 *) buf + 1;
- *buf = inw(NE_BASE + NE_DATAPORT);
- }
+ if (count & 2) {
+ *((u16 *) buf) = inw(NE_BASE + NE_DATAPORT);
+ buf = (void *) buf + sizeof (u16);
+ }
if (count & 1)
*buf = inb(NE_BASE + NE_DATAPORT);
}
@@ -607,8 +606,10 @@
outsl(NE_BASE + NE_DATAPORT, buf, count>>2);
if (count & 3) {
buf += count & ~3;
- if (count & 2)
- outw(*buf++, NE_BASE + NE_DATAPORT);
+ if (count & 2) {
+ outw(*((u16 *) buf), NE_BASE + NE_DATAPORT);
+ buf = (void *) buf + sizeof (u16);
+ }
}
#else
How do people feel about commiting the NIC update patch
(e.g.
<URL:http://svn.debian.org/wsvn/pkg-hurd/gnumach/trunk/debian/patches/11_nic_update.patch?op=file&rev=0&sc=0>;
I can send a inline copy if someone wants to have a look at it.)
Since all of the current GNU Mach NIC code is imported from third sources
(mostly Linux and Donald Becker's drivers) and that patch is just an
update to those and has been extensively used via the Debian GNU/Hurd
gnumach package, I'd also apply unless there are justified objections.
Regards,
Thomas
- Re: gnumach and gcc 4.0 (patch 1),
Thomas Schwinge <=