summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-02 11:15:53 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-02 11:15:53 +0000
commit9820aa6ec402f684eaf562aa3853b28d0a9dd387 (patch)
tree452011123623fa7a28e0af175d5d3ddc67807a98 /sys/dev
parent3a8ab69377cf3da92b416de479226e836b34ba9e (diff)
DOH! transmit got broken in the last commit.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/if_ed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/if_ed.c b/sys/dev/isa/if_ed.c
index f9722fc14d0..356bf0fd01b 100644
--- a/sys/dev/isa/if_ed.c
+++ b/sys/dev/isa/if_ed.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ed.c,v 1.17 1996/07/31 01:51:49 niklas Exp $ */
+/* $OpenBSD: if_ed.c,v 1.18 1996/08/02 11:15:52 niklas Exp $ */
/* $NetBSD: if_ed.c,v 1.100 1996/05/12 23:52:19 mycroft Exp $ */
/*
@@ -2769,8 +2769,8 @@ ed_shared_writemem(sc, from, card, len)
* have to be careful.
*/
if (sc->isa16bit) {
- word = from[0] + from[1] * 256;
while (len > 1) {
+ word = (u_int8_t)from[0] | (u_int8_t)from[1] << 8;
bus_mem_write_2(bc, memh, card, word);
from += 2;
card += 2;